Difference between revisions of "Docker rmi"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
 
   
 
   
 
  Solution: review if it is appropriate to delete container using <code>[[docker rm]] XXXXXX</code>
 
  Solution: review if it is appropriate to delete container using <code>[[docker rm]] XXXXXX</code>
 +
 +
docker image --force imagetobedeletedwithforceoption
  
 
== Related commands ==
 
== Related commands ==

Revision as of 13:40, 19 February 2023

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: