Difference between revisions of "Docker rmi"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
docker rmi
 +
[[docker rmi --help]]
  
 
  docker rmi myname1:mytag1
 
  docker rmi myname1:mytag1
  Untagged: myname1:mytag1
+
  [[Untagged]]: myname1:mytag1
 
  Deleted: sha256:8e70c407a8e226b217ad9a749c8e7498214377f6142c2d5f5043a0fc01ce4a07
 
  Deleted: sha256:8e70c407a8e226b217ad9a749c8e7498214377f6142c2d5f5043a0fc01ce4a07
 +
 +
docker rmi myname1:mytag5
 +
[[Untagged]]: myname1:mytag5
  
 
  [[docker]] rmi 7a40c3c56100
 
  [[docker]] rmi 7a40c3c56100
  Error response from daemon: conflict: unable to delete 7a40c3c56100 (must be forced) - image is being used by stopped  
+
  Error response from daemon: conflict: unable to delete 7a40c3c56100 (must be forced) - [[image is being used by stopped container]] 71ae176b8b82
  container 71ae176b8b82
+
   
 +
Solution: review if it is appropriate to delete container using <code>[[docker rm]] XXXXXX</code>
 +
 
 +
docker image --force imagetobedeletedwithforceoption
  
 
== Related commands ==
 
== Related commands ==
 
* <code>[[docker system prune]]</code>
 
* <code>[[docker system prune]]</code>
 
* <code>[[docker rm]]</code>
 
* <code>[[docker rm]]</code>
 +
* <code>[[act --container-architecture]]</code>
  
 
== See also ==
 
== See also ==
* {{docker}}
+
* {{docker cmd}}
 
 
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 10:47, 19 February 2024

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[edit]

See also[edit]

Advertising: