Closed HugoKuo closed 5 months ago
From the commits logs, the aws-go-sdk was bumped to 1.6+. We gave a quick test by building the registry binary from the master of this repository on mac. Then run the registry server from mac.
The s3 driver with v4 signature works for Swift's S3 API. May I know the release cycle of registry image in official docker hub?
I just built docker registry with ws-sdk-go/1.6.12
and go1.8.1
on my mac and it's running well with v4auth: true
. But I have the same issue in v4auth: false
.
Closing as wildly outdated. Besides, the Swift driver has been deprecated in the latest release and is no longer supported.
In my testing with registry 2, 2.6, 2.6.1. The s3 drvier doesn't work properly with OpenStack Swift's S3 API.
With v2, the push image always got http: no Host in request URL error.
For S3 v4 signature, the Invalid path:
http%3A//192.168.1.42%3A80/docker-s3/docker/reg
one comes from the aws-go-sdk that we discovered and reported to aws-go-sdk before. It was fixed in aws-go-sdk 1.5+. I pulled the latest docker registry and it's using go sdk 1.2.4 which has this issue. The AWS S3 can handle the encoded path but not Swift's Swift3 API. https://github.com/aws/aws-sdk-go/issues/944v2 signature registry instance configuration as below.
v4 signature registry instance configuration as below :