登录AWS的ECR失败

时间:2016-08-25 17:58:17

标签: amazon-web-services docker amazon-ecs

尝试通过Docker登录AWS的ECR时出现超时错误:

With formtime.spbutrok1
    .max = 2030'<--| this may trigger SB 'Change()' event handler that, via appropriate event handler coding, changes corresponding label capition accordingly
    .min = 2011'<--| this may trigger SB 'Change()' event handler that, via appropriate event handler coding, changes corresponding label capition accordingly
    .value = Format(Now, "yyyy"),'<-- set SB value to wanted value. And if this results in an actual change of the preceding value, then it'll trigger its 'Change()' event also that changes corresponding label capition accordingly
End With

错误:

> $(aws --profile sly ecr get-login --region us-east-1)

1 个答案:

答案 0 :(得分:0)

就我而言,我之前已将docker环境变量(DOCKER_HOST,DOCKER_CERT_PATH等)设置为指向数字海洋云实例。使用docker-machine切换到我的本地docker box修复了问题:

Error response from daemon: Get <url>: dial tcp: lookup <url> on <ip>: read udp <addr>-><addr>: i/o timeout

如果有人遇到与证书相关的错误,则此AWS forum post可能会有所帮助。