简体   繁体   English

无法将Docker容器推送到Amazon ECR

[英]Can not push docker container to Amazon ecr

I've made an image 我做了一张图片

111111111111.dkr.ecr.us-east-1.amazonaws.com/edx-cluster

I trying to push it to Amazon, but always I received the same error. 我试图将其推送到亚马逊,但始终收到相同的错误。 But I can push it to Docker hub without any errors 但我可以将其推送到Docker中心而不会出现任何错误

docker push 111111111111.dkr.ecr.us-east-1.amazonaws.com/edx-cluster:latest
The push refers to repository [111111111111.dkr.ecr.us-east-1.amazonaws.com/edx-cluster]
ae0062a2d077: Preparing 
c52921d94e3e: Preparing 
aa5d8376b8c4: Preparing 
79a57fc7fbcc: Preparing 
8a1159c97df8: Preparing 
adb2c7b88404: Waiting 
d3a701e27209: Waiting 
d8d26a0d0d6c: Waiting 
a34d1923f571: Waiting 
9fd1fd063a37: Waiting 
397415b17275: Waiting 
25bb34378fc3: Waiting 
711cc8b6546f: Waiting 
8d733d8c32ff: Waiting 
69ce838fa634: Waiting 
e252a759abc0: Waiting 
26b126eb8632: Waiting 
220d34b5f6c9: Waiting 
8a5132998025: Waiting 
aca233ed29c3: Waiting 
e5d2f035d7a4: Waiting 
unauthorized: authentication required

But I have in dokcer config file auth block with my AWS ecr link and auth key, that was generated after I have called aws ecr get-login What did I do wrong? 但是我的AWS Ecr链接和auth密钥存在于dokcer配置文件auth块中,该块是在我调用aws ecr get-login之后生成的,我该怎么办?

try to get login by 尝试通过登录

aws ecr get-login --no-include-email --region <region>

you will get a docker login copy that command and execute 您将获得该命令的docker登录副本并执行

docker login -u AWS -p 'long key' https://xxx.dkr.ecr.<region>.amazonaws.com

you will get and output of 您将获得和输出

Login Succeeded 登录成功

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 docker 容器从 locak 推送到 aws ecr - Push docker container from locak to aws ecr 如果 docker 容器安装在我的 EC2 虚拟机上,我可以在 docker 容器中使用 amazon ecr 凭证助手吗? - Can I use amazon ecr credential helper inside a docker container if its installed on my EC2 VM? 无法将图像推送到 Amazon ECR - 因“没有基本身份验证凭证”而失败 - Can't push image to Amazon ECR - fails with "no basic auth credentials" 将cf push与Amazon ECR一起使用? - Use cf push with Amazon ECR? 如何构建Docker映像并将其推到带有CIRCLE 2.0的ECR中? - How can I build a Docker image and push it to ECR with CIRCLE 2.0? Docker 推送到 AWS ECR 问题 - Docker push to AWS ECR issue 单个Docker镜像从VSTS构建/发布定义推入AWS弹性容器注册表(ECR) - Single Docker image push into AWS elastic container registry (ECR) from VSTS build/release definition 带有 Amazon ECR Docker 映像的 AWS Elastic Beanstalk - AWS Elastic Beanstalk with Amazon ECR Docker image 亚马逊AWS Docker注册表的ECR令牌错误 - ecr token error for amazon aws docker registry Docker 图像无法通过 Jenkins 管道和 docker.withRegistry 推送到 ECR - Docker Image can't push to ECR via Jenkins Pipeline & docker.withRegistry
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM