Skip to content

Instantly share code, notes, and snippets.

@fongfan999
Forked from Loschcode/dokku.txt
Created June 9, 2018 14:52
Show Gist options
  • Save fongfan999/bc78100b987eb31b892b9e8e8a9921bc to your computer and use it in GitHub Desktop.
Save fongfan999/bc78100b987eb31b892b9e8e8a9921bc to your computer and use it in GitHub Desktop.
Dokku no space left on device solution
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