Py学习  »  docker

为什么在使用docker文件构建docker映像后,我的存储库名称和标记没有出现?

Deepa • 2 年前 • 465 次点击  

我看不到我的docker图像(myimage1)的名称。具体如下:-

here

我使用的docker文件是:-

FROM centos:7
MAINTAINER Dev
LABEL remarks = "Test Image"
RUN yum install update && yum install httpd -y && yum install update

我正在使用命令创建图像:-

docker build -t "myimage1" .

我希望图像应该是myimage1,而不是 <none>

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/129922
 
465 次点击  
文章 [ 1 ]  |  最新文章 2 年前
gohm'c
Reply   •   1 楼
gohm'c    2 年前

I am expecting image should be myimage1, not <none>

你看到了吗 <none> 因为构建失败了。尝试:

FROM centos:7
MAINTAINER Dev
LABEL remarks = "Test Image"
RUN yum install httpd -y
RUN yum update -y

docker build -t myimage1 .

enter image description here