Last active
January 12, 2021 10:35
-
-
Save vub/82b026e7660eb8ddfe53742f6aca4871 to your computer and use it in GitHub Desktop.
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
Stop the container(s) using the following command: | |
``` | |
docker-compose down | |
``` | |
Delete all containers using the following command: | |
``` | |
docker rm -f $(docker ps -a -q) | |
``` | |
Delete all volumes using the following command: | |
``` | |
docker volume rm $(docker volume ls -q) | |
``` | |
Restart the containers using the following command: | |
``` | |
docker-compose up -d | |
``` | |
https://docs.tibco.com/pub/mash-local/4.1.1/doc/html/docker/GUID-BD850566-5B79-4915-987E-430FC38DAAE4.html | |
docker system prune | |
docker system prune -a | |
docker system prune --volumes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment