docker build with Dockerfile, but the image has no name or tag docker build with Dockerfile, but the image has no name or tag docker docker

docker build with Dockerfile, but the image has no name or tag


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/


Tag an image referenced by IDTo tag a local image with ID “0e5574283393” into the “fedora” repository with “version1.0”:

docker tag 0e5574283393 ExampleApps/myapp:version1.0


I know it's years later, but people still find this question via search and here's another reason for that error.

I mistakenly reused a build command without changing the tag parameter. It appears that the new build will take the tag, and the old one will switch to the double none.