Answers for "cleanup docker containters"

20

docker stop all

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Posted by: Guest on May-10-2020
3

how to delete image docker

docker image rm [OPTIONS] IMAGE_ID [IMAGE_ID...]
#[OPTIONS]
--force , -f		Force removal of the image
--no-prune		Do not delete untagged parents
Posted by: Guest on May-23-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language