无法从Docker容器内推送到ECR

时间:2018-07-25 02:48:33

标签: amazon-web-services docker ssl amazon-s3

我有一个泊坞窗容器,应该将已构建的泊坞窗容器推入ECR。为此,我在docker config中使用了docker(这意味着容器以特权身份运行)。但是,当我运行$(aws ecr get-login --region <my-region> --no-include-email)时,出现此错误:

time="2018-07-25T02:36:51.622504500Z" level=error msg="Handler for POST /auth returned error: invalid registry endpoint https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v0/: unable to ping registry endpoint https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v0/\nv2 ping attempt failed with error: Get https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v2/: dial tcp: lookup <some id>.dkr.ecr.us-east-1.amazonaws.com: no such host\n v1 ping attempt failed with error: Get https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v1/_ping: dial tcp: lookup <some id>.dkr.ecr.us-east-1.amazonaws.com: no such host. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry <some id>.dkr.ecr.us-east-1.amazonaws.com` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/<some id>.dkr.ecr.us-east-1.amazonaws.com/ca.crt" time="2018-07-25T02:36:51.622868500Z" level=error msg="HTTP Error" err="invalid registry endpoint https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v0/: unable to ping registry endpoint https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v0/\nv2 ping attempt failed with error: Get https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v2/: dial tcp: lookup <some id>.dkr.ecr.us-east-1.amazonaws.com: no such host\n v1 ping attempt failed with error: Get https://<some id>.dkr.ecr.us-east-1.amazonaws.com/v1/_ping: dial tcp: lookup <some id>.dkr.ecr.us-east-1.amazonaws.com: no such host. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry <some id>.dkr.ecr.us-east-1.amazonaws.com` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/<some id>.dkr.ecr.us-east-1.amazonaws.com/ca.crt" statusCode=404 任何帮助表示赞赏!

0 个答案:

没有答案