Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aMoRRoMa/9330dece4f9a2e41c09e4b6bafebb03b to your computer and use it in GitHub Desktop.
Save aMoRRoMa/9330dece4f9a2e41c09e4b6bafebb03b to your computer and use it in GitHub Desktop.
How to Do a Clean Restart of a Docker Instance
Procedure
1. Stop the container(s) using the following command:
docker-compose down
2. Delete all containers using the following command:
docker rm -f $(docker ps -a -q)
3. Delete all volumes using the following command:
docker volume rm $(docker volume ls -q)
4. Restart the containers using the following command:
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment