无法推入或从本地主机上的泊坞窗registry

在Arch linux上运行Server Version: 17.03.1-ce 。 在localhost上运行registry: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作为不安全的registry:

 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上正常工作,不需要设置不安全的寄存器。 帮帮我! 我不知道发生了什么事。

这是用户错误。 我没有aws密钥id运行容器,所以它不能读取桶。