简体   繁体   English

无法在 docker 图像中看到图像名称和标签

[英]Unable to see Image name and Tag in docker images

I have created a docker Image, but in the Repository/Tag its showing as "None", please let me know what will be the reason.我创建了一个 docker 图像,但在存储库/标记中它显示为“无”,请让我知道原因。

REPOSITORY                   TAG                 IMAGE ID            CREATED             
none                       none              bhc0b0d2e67f        20 hours ago

How have you built your docker image?您是如何构建 docker 映像的?

In order to give a tag to your image, as documented here ,you have to write the command like:为了给您的图像添加标签,如此所述,您必须编写如下命令:

docker build -t yourimage:yourtag -f yourdockerfile context/of/image

If you have already a docker image (like in your case) and you want to assign a tag to it:如果您已经有一个 docker 图像(如您的情况)并且您想为其分配一个标签:

docker tag bhc0b0d2e67f TARGET_IMAGE[:TAG]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM