Home  >  Q&A  >  body text

docker - 如何修改镜像名称?


看到一个镜像的名称是空的,怎么给它添加名字呢?

天蓬老师天蓬老师2710 days ago1300

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-04-21 11:19:45

    docker tag imageid name:tag correct solution.
    In csphere, the docker management platform, you can also add tags to images online

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-21 11:19:45

    The empty image is the "cache" during pull. Just delete it directly with docker rmi IMAGE ID.

    ------update-----

    It turns out that this image is being used by a certain container, and the poster wants to save it. Then the steps are as follows:

    docker ps -a | grep 镜像 ID # Get the ID of this image to get the correct container ID

    docker commit -a 'message aaaa' CONTAINER_ID NEW_IMAGE_NAME # Save the container as a new image.

    reply
    0
  • 黄舟

    黄舟2017-04-21 11:19:45

    docker tag IMAGEID new_repository newTAG Try this

    reply
    0
  • 阿神

    阿神2017-04-21 11:19:45

    <none>: There are two types of <none> one is benign and depends on other layers when building the image. This none image is normal.
    One is build failure<There are various problems that cause the failure. Dockerfile file syntax error, file downloading is blocked when running, own cancellation action, etc.> This kind of none image can be cleared. After the successfully built image is pushed, you will not be able to see the benign none image after pulling.

    reply
    0
  • Cancelreply