diff options
| author | name <[email protected]> | 2020-06-04 21:23:16 +0000 |
|---|---|---|
| committer | name <[email protected]> | 2020-06-04 21:23:16 +0000 |
| commit | 65d5d8df0e4aa7461b4122a56a2c1c98955475a6 (patch) | |
| tree | 9491a9af46d74712fe407aae4245b9a77567bd0e /README.md | |
| parent | Boot old container (diff) | |
| download | docker-osx-65d5d8df0e4aa7461b4122a56a2c1c98955475a6.tar.xz docker-osx-65d5d8df0e4aa7461b4122a56a2c1c98955475a6.zip | |
Backup disk for later
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -46,11 +46,29 @@ docker start $(docker ps -q --all --filter "ancestor=docker-osx") ``` +# Backup the disk + +your image will be stored in: + +/var/lib/docker/overlay2/...../arch/OSX-KVM/home/arch/OSX-KVM/mac_hdd_ng.img +``` +# find your container's root folder + +docker inspect $(docker ps -q --all --filter "ancestor=docker-osx") | grep UpperDir + +# In the folder from the above command, your image is inside ./home/arch/OSX-KVM/mac_hdd_ng.img + +# then sudo cp it somewhere. Don't do it while the container is running tho, it bugs out. + +``` + # Wipe old images ``` + # WARNING deletes all old images, but saves disk space if you make too many containers + docker system prune --all docker image prune --all |