oimhtw
Last Updated: February 22, 2019
·
320
· RobinCK

Clear docker images and containers

docker rm $(docker ps -aq) - remove all containers
docker rmi $(docker images -q) - remove all images
docker stop $(docker ps -a -q) - stop all Docker containers

2 Responses
Add your response

29758

You can use docker system prune to remove all data.

11 months ago ·
29803

And docker volume prune

11 months ago ·