[英]“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.