Forum Navigation
You need to log in to create posts and topics.

Remove all docker images and containers

Problem

User wants to remove all docker images and containers

Solution

Stop all running containers

docker stop $(docker ps -aq)

Kill All Running containers

docker kill $(docker ps -q)

Delete all containers

docker rm $(docker ps -a -q)

Delete all images

docker rmi $(docker images -q)

Note:

If you still getting errors while deleting -f ( force )

docker rmi -f $(docker images -q)

Remove Docker volumes to free space

docker volume prune -f

 

 

 

If you have found my website, guides, articles or videos useful, please buy me a coffee