Create pruneall.sh

This commit is contained in:
Brett 2021-12-10 14:42:47 +01:00
parent 60a9d30156
commit 9d375f727a
1 changed files with 16 additions and 0 deletions

16
pruneall.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Stop all containers
docker kill $(docker ps -q)
# Remove all stopped containers
docker rm -f $(docker ps -aq)
# Remove all docker images
docker rmi $(docker images -q)
# Remove all volumes
docker volume rm $(docker volume ls -q)
# Remove ckan-docker_default network
docker network rm ckan-docker_default