Answers for "docker clean unused containers"

1

docker remove all containers and images

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

remove unused images docker manually

$ docker rmi $(docker images -q -f dangling=true)
Posted by: Guest on July-28-2020
1

docker remove unused

docker system prune [OPTIONS]
--all , -a		Remove all unused images not just dangling ones
--filter		API 1.28+
Provide filter values (e.g. 'label=<key>=<value>')
--force , -f		Do not prompt for confirmation
--volumes		Prune volumes
Posted by: Guest on October-23-2021

Browse Popular Code Answers by Language