invalid reference format Docker Origin: Platform & cloud Last updated 13 Oct 2026

docker: invalid reference format (repository name must be lowercase)

Docker couldn’t parse the image name — uppercase letters, spaces, an empty variable, or a misplaced option.

Exact message you may see invalid reference formatrepository name must be lowercaseinvalid reference format: repository name must be lowercase
Seen on: Docker

Meaning

Image references must be lowercase and look like [registry/]name[:tag|@digest]. A common cause is $(pwd) with spaces breaking a -v argument, so part of a path is read as the image name, or an unset variable leaving “myorg/:1.0”.

Common causes

  • Uppercase letters in the image name
  • Space in a path ($(pwd)) splitting arguments
  • Empty variable in the tag (image:${TAG})
  • Options placed after the image name
  • Smart quotes/dashes pasted from a web page

⚡ Quick fix

  1. Lowercase the name
  2. Quote paths: -v "$(pwd)":/app
  3. Check variables are set (echo "$TAG")
  4. Put all options before the image name

Detailed fix by platform

Docker

  1. docker run --rm -v "$(pwd)":/app -w /app node:20 npm test

How to diagnose

  1. Name — Uppercase or odd characters?
  2. Variables — echo each one
  3. Order — Options before the image?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

1011 — Cloudflare Error 1011: Access denied (Hotlinking denied) (Cloudflare)1011conflict: unable to remove repository reference — conflict: unable to remove repository reference (must force) - container is using its referenced image (Docker)conflict: unable to r…docker-compose: command not found — docker-compose: command not found / 'compose' is not a docker command (Docker)docker-compose: comma…exec format error — exec /usr/local/bin/docker-entrypoint.sh: exec format error (Docker)exec format errorGD missing — Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg() (PHP)GD missingimage has dependent child images — conflict: unable to delete image (cannot be forced) - image has dependent child images (Docker)image has dependent c…InvalidImageName — Pod status InvalidImageName: couldn't parse image reference (Kubernetes)InvalidImageNameis not running — Error response from daemon: Container X is not running (Docker)is not runninginvalid r…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.