search

Home  >  Q&A  >  body text

docker 下面创建的IMAGE 他们的 ID 一样?这个是怎么回事????

docker 下面创建的IMAGE 他们的 ID 一样?这个是怎么回事????
而且删除不了。刚刚开始学习docker。请大神指教。

阿神阿神2823 days ago803

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-27 09:04:58

    Explain that these two images are the same image, but they have different names. You can use docker tag to add tags to this image or create a new image with a different name.

    However, when you rmi the name, you only delete the name, not the image (unless it is the last name), and rmi the id directly to delete the image.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-27 09:04:58

    Delete with REPOSITORY
    docker rmi -f $(docker images -q mysql | sort -u)

    reply
    0
  • Cancelreply