kill all running containers with docker kill $(docker ps -q)
docker kill $(docker ps -q)
delete all stopped containers with docker rm $(docker ps -a -q)
docker rm $(docker ps -a -q)
delete all images with docker rmi $(docker images -q)
docker rmi $(docker images -q)
delete all unused stuff docker system prune -a
docker system prune -a
Other commands:
Last updated 6 years ago