我试图使用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
答案 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