aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorname <[email protected]>2020-06-04 21:23:16 +0000
committername <[email protected]>2020-06-04 21:23:16 +0000
commit65d5d8df0e4aa7461b4122a56a2c1c98955475a6 (patch)
tree9491a9af46d74712fe407aae4245b9a77567bd0e /README.md
parentBoot old container (diff)
downloaddocker-osx-65d5d8df0e4aa7461b4122a56a2c1c98955475a6.tar.xz
docker-osx-65d5d8df0e4aa7461b4122a56a2c1c98955475a6.zip
Backup disk for later
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index c8dba59..68c4272 100644
--- a/README.md
+++ b/README.md
@@ -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