Last Updated: August 01, 2022
·
698
· 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

You can use docker system prune to remove all data.

over 1 year ago ·

And docker volume prune

over 1 year ago ·