我已经设置了一个AWS ecr Docker注册表,我可以使用此命令手动拉出图像(登录后):
docker pull 354026083790.dkr.ecr.us-east-2.amazonaws.com/dev-nginx
但是这个docker_image块不起作用:
docker_registry "https://354026083790.dkr.ecr.us-east-2.amazonaws.com" do
username "AWS"
password "lolololollol..."
end
docker_image "https://354026083790.dkr.ecr.us-east-2.amazonaws.com/dev-nginx" do
tag node latest
read_timeout 7200
write_timeout 7200
action :pull
host "unix:///var/run/docker.sock"
end
此错误:
no such image: https:/354026083790.dkr.ecr.us-east-2.amazonaws.com/dev-nginx:latest: invalid reference format
我尝试了这种格式的几种变体,似乎没有任何工作......任何想法?请注意错误消息上的http:/而不是http://。