Created
July 23, 2019 18:04
-
-
Save sushant-at-nitor/a9f9bc1cbd5d2d8cc394851d2504d5ff to your computer and use it in GitHub Desktop.
Docker Reset / Docker clean slate / Docker Instance Clean Restart
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
# kill running containers | |
docker-compose down | |
# delete all containers | |
docker rm -f $(docker ps -a -q) | |
# Remove all the volumes | |
docker volume rm $(docker volume ls -q) | |
# up again | |
docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment