Create pruneall.sh
This commit is contained in:
parent
60a9d30156
commit
9d375f727a
|
@ -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
|
Loading…
Reference in New Issue