Created
January 11, 2022 09:30
-
-
Save aMoRRoMa/9330dece4f9a2e41c09e4b6bafebb03b to your computer and use it in GitHub Desktop.
How to Do a Clean Restart of a Docker Instance
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
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