From 727a1dc95c620a6cb09fe7e2854fa2686bb8b200 Mon Sep 17 00:00:00 2001 From: Dulat <65179781+dulatello08@users.noreply.github.com> Date: Fri, 11 Feb 2022 06:50:27 +0400 Subject: [PATCH 1/2] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 6f9e415..842666b 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,13 @@ SEE commands in [https://github.com/sickcodes/osx-optimizer](https://github.com/ - Disable heavy login screen wallpaper - Disable updates (at your own risk!) +## Increase disk space by mounting filesystem on separate physical disk + +For more information SEE https://sick.codes/how-to-run-docker-from-block-storage/ + +- Mount /var/lib/docker on physical disk +- Use cheap physical disk storage instead using your server's disk + ## Important notices: **2021-11-14** - Added High Sierra, Mojave From 3188252da401dd41a3a6c7cc23ba7f072643dfd9 Mon Sep 17 00:00:00 2001 From: sickcodes <65906298+sickcodes@users.noreply.github.com> Date: Fri, 11 Feb 2022 05:59:07 +0000 Subject: [PATCH 2/2] Update README.md --- README.md | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 842666b..8af16f1 100644 --- a/README.md +++ b/README.md @@ -296,12 +296,40 @@ SEE commands in [https://github.com/sickcodes/osx-optimizer](https://github.com/ - Disable heavy login screen wallpaper - Disable updates (at your own risk!) -## Increase disk space by mounting filesystem on separate physical disk +## Increase disk space by moving /var/lib/docker to external drive, block storage, NFS, or any other location conceivable. -For more information SEE https://sick.codes/how-to-run-docker-from-block-storage/ +Move /var/lib/docker, following the tutorial below -- Mount /var/lib/docker on physical disk -- Use cheap physical disk storage instead using your server's disk +- Cheap large physical disk storage instead using your server's disk, or SSD. +- Block Storage, NFS, etc. + +Tutorial here: https://sick.codes/how-to-run-docker-from-block-storage/ + +Only follow the above tutorial if you are happy with wiping all your current Docker images/layers. + +Safe mode: Disable docker temporarily so you can move the Docker folder temporarily. + +- Do NOT do this until you have moved your image out already [https://github.com/dulatello08/Docker-OSX/#quick-start-your-own-image-naked-container-image](https://github.com/dulatello08/Docker-OSX/#quick-start-your-own-image-naked-container-image) + +```bash +killall dockerd +systemctl disable --now docker +systemctl disable --now docker.socket +systemctl stop docker +systemctl stop docker.socket +``` +Now, that Docker daemon is off, move /var/lib/docker somewhere + +Then, symbolicly link /var/lib/docker somewhere: + +```bash +mv /var/lib/docker /run/media/user/some_drive/docker +ln -s /run/media/user/some_drive/docker /var/lib/docker + +# now check if /var/lib/docker is working still +ls /var/lib/docker +``` +If you see folders, then it worked. You can restart Docker, or just reboot if you want to be sure. ## Important notices: