在Arch linux上运行docker Server Version: 17.03.1-ce
。运行注册:localhost上的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上工作正常,没有设置不安全的注册表。 救命! 我不知道发生了什么。
答案 0 :(得分:0)
这是用户错误。我没有使用aws密钥id运行容器,因此无法读取存储桶。