zoukankan      html  css  js  c++  java
  • docker rmi命令-删除image

    rmi 删除image

    Usage: docker rmi IMAGE [IMAGE...]Remove one or more images
    
      -f,--force=falseForce removal of the image
      --no-prune=falseDonotdelete untagged parents

    Removing tagged images

    Images can be removed either by their short or long ID`s, or their image names. If an image has more than one name, each of them needs to be removed before the image is removed.

    $ sudo docker images
    REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
    test1                     latest              fd484f19954f        23 seconds ago      7 B (virtual4.964 MB)
    test                      latest              fd484f19954f        23 seconds ago      7 B (virtual4.964 MB)
    test2                     latest              fd484f19954f        23 seconds ago      7 B (virtual4.964 MB)
    
    $ sudo docker rmi fd484f19954f
    Error:Conflict, cannot delete image fd484f19954f because it is tagged in multiple repositories
    2013/12/1105:47:16Error: failed to remove one or more images
    
    $ sudo docker rmi test1
    Untagged: fd484f19954f4920da7ff372b5067f5b7ddb2fd3830cecd17b96ea9e286ba5b8
    $ sudo docker rmi test2
    Untagged: fd484f19954f4920da7ff372b5067f5b7ddb2fd3830cecd17b96ea9e286ba5b8
    
    $ sudo docker images
    REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
    test                      latest              fd484f19954f        23 seconds ago      7 B (virtual4.964 MB)
    $ sudo docker rmi test
    Untagged: fd484f19954f4920da7ff372b5067f5b7ddb2fd3830cecd17b96ea9e286ba5b8
    Deleted: fd484f19954f4920da7ff372b5067f5b7ddb2fd3830cecd17b96ea9e286ba5b8
  • 相关阅读:
    Windows下输入法全角符,半角符的切换
    hdu 2546 饭卡
    hdu 1712 ACboy needs your help
    hdu 3033 I love sneakers!
    hdu 1171 Big Event in HDU
    hdu 1114 Piggy-Bank
    HDU 1058 Humble Numbers
    hdu 1297
    hdu 2050
    hdu 2563
  • 原文地址:https://www.cnblogs.com/river2005/p/8461902.html
Copyright © 2011-2022 走看看