V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Webpoplayer
V2EX  ›  Docker

本地镜像的问题

  •  
  •   Webpoplayer · Oct 10, 2021 · 1310 views
    This topic created in 1662 days ago, the information mentioned may be changed or developed.

    本地生成镜像后,推送到仓库,打完标签后,本地查看镜像 会有两个image ID 完全一样的镜像,就镜像名不一样,删除也无法删除? 重新打 tag 推送,本地就多一个,是哪里没配置好还是?

    docker images
    REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
    fluentd                  latest              6b4bba69f86d        6 weeks ago         213 MB
    aaaaaaaa/fluentd         latest              6b4bba69f86d        6 weeks ago         213 MB
    aaaaaaaa/elasticsearch   latest              1df212a9ddd4        6 weeks ago         812 MB
    elasticsearch            latest              1df212a9ddd4        6 weeks ago         812 MB
    
    1 replies    2021-10-10 14:35:47 +08:00
    billlee
        1
    billlee  
       Oct 10, 2021
    只是个引用而已,build 的时候直接指定 -t aaaaaaaa/fluentd, 就不会产生 fluentd 这个名称
    用 docker rmi fluentd 可以删除的吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 336ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.