When I was accessing Alibaba Cloud OSS using the S3 protocol, I encountered an issue because Alibaba Cloud OSS does not support the path style. According to the documentation, the default value for forcepathstyle is false. However, when I did not set it, forcepathstyle defaulted to the path style, resulting in access to Alibaba Cloud OSS being denied. When I set forcepathstyle to false, I noticed that the constructed URL was still in the path style.
The version I am using was installed from the 2.14.2 offline installer
The configuration is as follows:
The constructed URL is as follows:
https://oss-cn-guangzhou.aliyuncs.com/{mybucketname}/docker/registry/v2/blobs/sha256/35/xxxxxxx