docker
config_error
ai_generated
true
守护进程错误响应:无效的引用格式:仓库名称必须为小写
Error response from daemon: invalid reference format: repository name must be lowercase
ID: docker/invalid-reference-format
95%修复率
90%置信度
1证据数
2024-03-05首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Docker 24.0.6 | active | — | — | — |
| Docker 25.0.3 | active | — | — | — |
| Docker 23.0.5 | active | — | — | — |
根因分析
镜像名称或标签包含大写字母或无效字符,Docker 不允许仓库名称包含这些字符。
English
The image name or tag contains uppercase letters or invalid characters, which Docker does not allow for repository names.
官方文档
https://docs.docker.com/engine/reference/commandline/tag/解决方案
-
Rename the image to use only lowercase letters, numbers, and allowed symbols. Example: change 'MyApp:latest' to 'myapp:latest'.
-
If using docker-compose, ensure the image field is lowercase: 'image: myapp:1.0' instead of 'image: MyApp:1.0'.
无效尝试
常见但无效的做法:
-
90% 失败
Using quotes around the image name does not fix uppercase letters; Docker still parses them as invalid.
-
95% 失败
Changing the tag to uppercase does not help; the repository name itself must be lowercase.