Common causes
- Uppercase letters in the image name — Docker Hub names must be lowercase
- Spaces in the image name or tag, often from a copy-paste with a trailing newline
- Special characters like @ or ! in the tag
- A colon in the wrong place or multiple colons in the reference
How to fix it
- Convert the image name to lowercase: docker build -t myapp:v1 . (not MyApp:v1)
- Trim whitespace and hidden characters: pipe through tr -d '\n' or echo the value to inspect it
- Use only letters, digits, dots (.), dashes (-), and underscores (_) in image names and tags
- For SHA digest references, use the @ format correctly: image@sha256:HASH
Example
$ docker pull My Image:latest
Error response from daemon: invalid reference formatImage name has a space and uppercase letters, neither of which are valid in Docker image references
Browse more errors
The Developer Hub covers 150+ errors across Git, npm, Node.js, Python, TypeScript, and Docker — with plain-English explanations and fix steps.
