The other day I was enjoying the sunset in Williamsburg while wearing my irregular bucket hat. I got a text from a friend that’s working on a web app project. He kept texting me the error he got in his Linux terminal “Invalid Reference Format Error in Docker” while trying to build an image from a Dockerfile.

I asked him to send me more details. He was running:

docker build -t a-Beautiful-image .

I also tried to run it this way with docker run:

docker run -p 80:8080 a-Beautiful-image

And got the following more informative error:

docker: invalid reference format: repository name must be lowercase.

OH uh oh! Now it makes sense. You need to change the image name to all lower case:

docker build -t a-beautiful-image .

All works now!

Contact me if you have any questions. Also, take a look at my shop and let me know what you think.

Leave a comment

Your email address will not be published. Required fields are marked *