mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 22:03:28 +01:00
Question about persistent setup and docker commit #333
Reference in New Issue
Block a user
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).
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 26, 2023):
For those trying to do this with the High Sierra image, this is what I had to do: