简体   繁体   English

“没有基本的身份验证凭据” docker push

[英]“no basic auth credentials” docker push

I tried to push the Docker container.我试图推送 Docker 容器。 But it gave me a "no basic auth credentials" error.但它给了我一个“没有基本身份验证凭据”的错误。 Even I used aws ecr get-login-password and entered my credentials with docker configure and managed to create repository from terminal in AWS, pushing did not work.即使我使用aws ecr get-login-password并使用docker configure输入我的凭证并设法从 AWS 中的终端创建存储库,推送也不起作用。 Does anybody know why I cannot push to AWS?有人知道为什么我不能推送到 AWS 吗?

Thank in advance.预先感谢。

it is authentication, first retrieve an authentication token and authenticate your Docker client to your registry:它是身份验证,首先检索身份验证令牌并将您的 Docker 客户端身份验证到您的注册表:

aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin {account_id}.dkr.ecr.ap-south-1.amazonaws.com

after you build and tag, push depending on your tag:构建和标记后,根据您的标记推送:

docker push ${account_id}.dkr.ecr.ap-south-1.amazonaws.com/${repo_name}:latest

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

相关问题 Docker推送到AWS ECR在Windows上失败:没有基本身份验证凭据 - Docker push to AWS ECR fails on Windows: no basic auth credentials AWS CodePipeline Docker 推送命令返回“无基本身份验证凭证” - AWS CodePipeline Docker push command returns 'no basic auth credentials' 尝试将docker-image资源推送到AWS ECR时使用“无基本身份验证凭证” - Concourse “no basic auth credentials” when trying to push with docker-image resource to AWS ECR Docker ImagePush失败,“没有基本身份验证凭据” - Docker ImagePush failing with “no basic auth credentials” 无法将映像推送到ECS专用注册表-没有基本的身份验证凭据 - Can't push an image to ECS Private Registry - no basic auth credentials 无法推送图像 - 因“没有基本身份验证凭据”而失败 - Can't push image - fails with "no basic auth credentials" 无法将图像推送到 AWS Lambda - 因“没有基本身份验证凭证”而失败 - Can't push image to AWS Lambda - fails with "no basic auth credentials" 无法将图像推送到 Amazon ECR - 因“没有基本身份验证凭证”而失败 - Can't push image to Amazon ECR - fails with "no basic auth credentials" 将 docker 映像推送到 aws ecr 不会提供基本的身份验证凭据 - Pushing a docker image to aws ecr gives no basic auth credentials 在EC2实例上使用IAM角色“无基本身份验证凭据” - “No basic auth credentials” using IAM role on EC2 instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM