在Arch linux上运行docker Server Version: 17.03.1-ce。在localhost上运行registy:v2:
docker run --name registry -d -p 5000:5000 \
-e "REGISTRY_STORAGE=s3" \
-e "REGISTRY_STORAGE_S3_REGION=region"\
-e "REGISTRY_STORAGE_S3_BUCKET=bucket"\
-e "REGISTRY_STORAGE_S3_ACCESSKEY=redacted"\
-e "REGISTRY_STORAGE_S3_SECRETKEY=redacted"\
registry:2将守护程序设置为使用localhost:5000作为不安全注册表:
Insecure Registries:
localhost:5000
127.0.0.0/8但推送仍然失败,出现以下错误:
Attempting next endpoint for push after error: Get
https://localhost:5000/v2/: http: server gave HTTP response to HTTPS
client我在amazon-linux ec2上也得到了这个。这在Ubuntu 16.04上运行得很好,没有设置不安全的-regsitries。帮助!我不知道发生了什么。
发布于 2017-05-23 20:23:02
这是用户错误。我在没有aws密钥id的情况下运行容器,所以它无法读取存储桶。
https://stackoverflow.com/questions/44097309
复制相似问题