Skip to content

Commit 3188252

Browse files
authored
Update README.md
1 parent 727a1dc commit 3188252

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

README.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,40 @@ SEE commands in [https://github.com/sickcodes/osx-optimizer](https://github.com/
296296
- Disable heavy login screen wallpaper
297297
- Disable updates (at your own risk!)
298298

299-
## Increase disk space by mounting filesystem on separate physical disk
299+
## Increase disk space by moving /var/lib/docker to external drive, block storage, NFS, or any other location conceivable.
300300

301-
For more information SEE https://sick.codes/how-to-run-docker-from-block-storage/
301+
Move /var/lib/docker, following the tutorial below
302302

303-
- Mount /var/lib/docker on physical disk
304-
- Use cheap physical disk storage instead using your server's disk
303+
- Cheap large physical disk storage instead using your server's disk, or SSD.
304+
- Block Storage, NFS, etc.
305+
306+
Tutorial here: https://sick.codes/how-to-run-docker-from-block-storage/
307+
308+
Only follow the above tutorial if you are happy with wiping all your current Docker images/layers.
309+
310+
Safe mode: Disable docker temporarily so you can move the Docker folder temporarily.
311+
312+
- 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)
313+
314+
```bash
315+
killall dockerd
316+
systemctl disable --now docker
317+
systemctl disable --now docker.socket
318+
systemctl stop docker
319+
systemctl stop docker.socket
320+
```
321+
Now, that Docker daemon is off, move /var/lib/docker somewhere
322+
323+
Then, symbolicly link /var/lib/docker somewhere:
324+
325+
```bash
326+
mv /var/lib/docker /run/media/user/some_drive/docker
327+
ln -s /run/media/user/some_drive/docker /var/lib/docker
328+
329+
# now check if /var/lib/docker is working still
330+
ls /var/lib/docker
331+
```
332+
If you see folders, then it worked. You can restart Docker, or just reboot if you want to be sure.
305333

306334
## Important notices:
307335

0 commit comments

Comments
 (0)