-
-
Save fongfan999/bc78100b987eb31b892b9e8e8a9921bc to your computer and use it in GitHub Desktop.
Dokku no space left on device solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Stop docker: service docker stop. Verify no docker process is running ps faux | |
2) Double check docker really isn't running. Take a look at the current docker directory: ls /var/lib/docker/ | |
2b) Make a backup - tar -zcC /var/lib docker > /mnt/pd0/var_lib_docker-backup-$(date +%s).tar.gz | |
3) Move the /var/lib/docker directory to your new partition: mv /var/lib/docker /mnt/pd0/docker | |
4) Make a symlink: ln -s /mnt/pd0/docker /var/lib/docker | |
5) Take a peek at the directory structure to make sure it looks like it did before the mv: ls /var/lib/docker/ (note the trailing slash to resolve the symlink) | |
6) Start docker back up service docker start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment