You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
295 B
16 lines
295 B
#!/bin/bash
|
|
|
|
echo "stopping all containers"
|
|
docker stop $(docker ps -a -q)
|
|
|
|
echo "removing all containers"
|
|
docker rm $(docker ps -a -q)
|
|
|
|
echo "removing all volumes"
|
|
docker volume rm $(docker volume ls -q)
|
|
|
|
echo "removing all images"
|
|
docker rmi $(docker images -a -q)
|
|
|
|
echo "Docker cleanup done"
|