【发布时间】:2021-05-15 19:39:20
【问题描述】:
我一直在研究这个问题,但无法弄清楚问题是什么。
我使用 Ubuntu 20.04 并拥有最新版本的 Docker 和 AWS CLI:
AWS CLI:
aws-cli/2.1.25 Python/3.7.3 Linux/5.8.0-43-generic exe/x86_64.ubuntu.20 prompt/off
码头工人:Docker version 20.10.3, build 48d30b5
每当我运行我的身份验证令牌时:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin xxxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com
我收到此错误:
error during connect: Post http://docker/v1.24/auth: command [ssh -l pi -- 192.168.x.xx docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=ssh: connect to host 192.168.x.xx port 22: No route to host
我重新安装了 AWS CLI 并检查了我的 aws 配置凭证。一切都完全应有的样子。但是,我仍然收到此错误,我认为这与我之前做过的最近的树莓派项目有关。我的树莓派项目与我遇到的错误有什么关系吗?我很肯定它必须处理 ssh 访问。我将不胜感激。
编辑:我注意到我的 SSH 密钥的模式。打算去这个领域看看我能弄清楚什么。
【问题讨论】:
标签: docker aws-cli amazon-ecr