docker rmi

From wikieduonline
Jump to navigation Jump to search

docker rmi
docker rmi --help
docker rmi myname1:mytag1
Untagged: myname1:mytag1
Deleted: sha256:8e70c407a8e226b217ad9a749c8e7498214377f6142c2d5f5043a0fc01ce4a07
docker rmi myname1:mytag5
Untagged: myname1:mytag5
docker rmi 7a40c3c56100
Error response from daemon: conflict: unable to delete 7a40c3c56100 (must be forced) - image is being used by stopped container 71ae176b8b82

Solution: review if it is appropriate to delete container using docker rm XXXXXX
docker image --force imagetobedeletedwithforceoption 

Related commands

See also

Advertising: