Skip to content

Instantly share code, notes, and snippets.

@vub
Last active January 12, 2021 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vub/82b026e7660eb8ddfe53742f6aca4871 to your computer and use it in GitHub Desktop.
Save vub/82b026e7660eb8ddfe53742f6aca4871 to your computer and use it in GitHub Desktop.
Clean Restart of a Docker Instance
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