Last active
June 29, 2017 21:32
-
-
Save jkremser/2c830e9103d22a5502da745b4ac1bb37 to your computer and use it in GitHub Desktop.
This file contains 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
alias d=docker | |
d kill `d ps -aq` | |
d rm -f `d ps -aq` | |
d rmi -f `d images -qa` | |
d volume rm `d volume ls -q` | |
d network rm `d network ls -q` | |
# removing images that can't be removed ("Error response from daemon: reference does not exist") | |
sudo rm -Rf /var/lib/docker/image/devicemapper/imagedb/content/sha256 && sudo mkdir /var/lib/docker/image/devicemapper/imagedb/content/sha256 | |
# this helps if it's saying the port is already allocated even though it's not | |
sudo rm /var/lib/docker/network/files/* | |
sudo systemctl restart docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment