Answers for "Which command is used to remove all the stopped containers, all the networks that are not used, all dangling images and all build caches?"

1

docker remove all containers and images

docker container rm $(docker container ls -aq)
Posted by: Guest on September-04-2020
0

delete all containers created x hours ago

# Delete all stopped containers
docker container prune
Posted by: Guest on July-02-2020

Code answers related to "Which command is used to remove all the stopped containers, all the networks that are not used, all dangling images and all build caches?"

Browse Popular Code Answers by Language