码头工人不拉基本身份验证凭据

时间:2019-10-28 23:53:11

标签: docker

我试图使用docker pull其他AWS ec2实例,但出现以下错误。

(py36) ubuntu@ip-xxx:~$ docker pull xxxxx.dkr.ecr.eu-west-2.amazonaws.com/xxxx/xxxx:latest
Error response from daemon: Get https://xxxxx.dkr.ecr.eu-west-2.amazonaws.com/v2/xxxx/xxxx/xxx/xxxx: no basic auth credentials

我指的是这个(https://forums.docker.com/t/docker-push-to-ecr-failing-with-no-basic-auth-credentials/17358)。但这没有用,有人知道怎么做吗?

~/.docker/config.json

1 个答案:

答案 0 :(得分:0)

尝试

--registry-ids <some-id>

基于

https://stackoverflow.com/questions/56967033/no-basic-auth-credentials-when-trying-to-pull-an-image-from-a-private-ecr/56967315
相关问题