docker build with Dockerfile, but the image has no name or tag
43,876
Solution 1
is your image building correctly? the name does not get set when there is an error in the build. This because every step in the build is a new image created and with an error you won't get to the last step with the correctly named image
btw you can set it manually with the tag command https://docs.docker.com/engine/reference/commandline/tag/
Solution 2
Tag an image referenced by ID To tag a local image with ID “0e5574283393” into the “fedora” repository with “version1.0”:
docker tag 0e5574283393 ExampleApps/myapp:version1.0
Author by
viewking
Updated on July 09, 2022Comments
-
viewking almost 2 years
I installed Docker desktop for mac. The version is
1.12.0-rc4-beta19
when I use
docker build -t self/centos:java8 .
the image has no name or tag
REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> 1581ffcbfd7f 5 minutes ago 196.8 MB
What is wrong with the build command?
-
viewking almost 8 yearsthanks, You are right !The error happened, there is a connection refused
-
Vishrant over 6 yearshow to know if there is an error while building up? for me it is showing
Successfully built
but shows <none>:<none> -
Darius over 6 years@Vishrant, in general you can see the build output (and don't use
-q
or--quiet
). -
Shashank Srivastava almost 4 yearsI am getting a successfull built and if i immediately run docker run command i see the name but some how after sometime the name is getting set to none. can someone please help?
-
joe about 3 yearsThis solved my problem. If your build ends in something like
Running in e3e4cc0a2264
then it means that your docker image hasn't finished building because there's a command that is "hanging" (in my case a python script that hadn't finished).