docker - 如何修改镜像名称?
天蓬老师
天蓬老师 2017-04-21 11:17:45
0
4
1335


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

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
洪涛

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

巴扎黑

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.

黄舟

docker tag IMAGEID new_repository newTAG Try this

阿神

<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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template