出现无法从 AWS ECR 注册表推送或拉取的问题,并出现以下神秘错误:
error parsing HTTP 404 response body: invalid character 'p' after top-level value: "404 page not found\n"
几个小时的谷歌搜索表明这是一个协议(protocol)问题。原来是图像名称:
xxxxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/snowshu__test
问题是:镜像名称包含双下划线时出现 AWS ECR 错误。
这与 ECR 命名 documentation 相矛盾。 .
最佳答案
存储库名称中不能有两个相邻的下划线。
根据 Docker Registry API :
A component of a repository name must be at least one lowercase, alpha-numeric characters, optionally separated by periods, dashes or underscores. More strictly, it must match the regular expression
[a-z0-9]+(?:[._-][a-z0-9]+)*
.
关于amazon-web-services - Docker AWS ECR 错误解析 HTTP 404 响应正文 : invalid character 'p' after top-level value: "404 page not found\n",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59975147/