mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-27 08:35:48 +03:00
[GH-ISSUE #461] Question about persistent setup and docker commit #331
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#331
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sebbekarlsson on GitHub (Mar 9, 2022).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/461
Some background:
I'm using this to work on an IOS app in XCode.
I really need my setup to be persistent so that I don't need to re-install OSX everytime.
Do I understand things correctly, I need to run "docker commit" everytime before I shut down the OSX machine in order to save the state?
Cheers,
Sebastian
@Julioevm commented on GitHub (Mar 11, 2022):
What you need to do is extract the HDD image and use it when you create a new container, so you always keep the same data.
You can find the image like this:
sudo find /var/lib/docker -size +10G | grep mac_hdd_ng.imgMove it somewhere you want to have it accessible. Then start a new container with the parameter.
-v "the-location-you-pick/mac_hdd_ng.img:/image" \@maltegrosse commented on GitHub (Mar 11, 2022):
perhaps there are some use cases where avoiding docker and using osx-kvm directly makes more sense..
@Julioevm commented on GitHub (Mar 11, 2022):
Yes for a simple persisten setup, osx-kvm can be enough. But I think Docker-OSX is easier to setup these days. Up to him to decide 🙂
@satmandu commented on GitHub (Apr 25, 2023):
For those trying to do this with the High Sierra image, this is what I had to do: