AnsweredAssumed Answered

Running Docker Registry on HS3

Question asked by Jonathan White on Nov 16, 2017
Latest reply on Nov 20, 2017 by Jonathan White

We are trying to setup Docker Registry(https://docs.docker.com/registry/) on HCP using HS3 access method using Docker’s S3 driver (https://docs.docker.com/registry/storage-drivers/s3/).

 

But we hit an http 501 “Not Implemented” error when we try to connect.

 

Anyone got Docker Registry running successfully on HS3 or have an idea what the issue may be ?

 

Docker-registry startup config:

 

/usr/bin/docker run -P \

-e REGISTRY_STORAGE=s3 \

-e "REGISTRY_STORAGE_S3_ACCESSKEY=c2FiZGV2b3A=" \

-e REGISTRY_STORAGE_S3_SECRETKEY=2ff8fe9169d4442fa49e1b6d3cfb2968 \

-e REGISTRY_STORAGE_S3_REGIONENDPOINT="http://s3eng.ukarkuathcp1a.uk.dev.net/" \

-e REGISTRY_STORAGE_S3_REGION=docker \

-e REGISTRY_STORAGE_S3_BUCKET=docker \

-e REGISRTY_STORAGE_S3_SECURE=false \

-e REGISTRY_HTTP_TLS_CERTIFICATE=/mnt/registry/certs/docker-registry.crt \

-e REGISTRY_HTTP_TLS_KEY=/mnt/registry/certs/docker-registry.key \

-e REGISTRY_AUTH=htpasswd \

-e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \

-e REGISTRY_AUTH_HTPASSWD_PATH=/mnt/registry/auth/htpasswd\

-e REGISTRY_HTTP_SECRET=SABREdevopsdockerregistry \

-v /var/mnt/registryfs:/mnt/registry \

-p 5000:5000 \

--name docker-registry \

docker.io/registry:2

 

Docker logfile:

 

time="2017-11-09T12:02:29Z" level=error msg="response completed with error" auth.user.name=sabredoc err.code=unknown err.detail="s3aws: NotImplemented: The request requires functionality that is not implemented in the current release\n\tstatus code: 501, request id: " err.message="unknown error" go.version=go1.7.6 http.request.host="uklvadsab32.uk.standardchartered.com:5000" http.request.id=4618f9b4-a16c-4c09-9069-541c98e7beec http.request.method=POST http.request.remoteaddr="10.193.28.184:55156" http.request.uri="/v2/registry/blobs/uploads/" http.request.useragent="docker/1.12.6 go/go1.7.4 kernel/3.10.0-514.26.1.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))" http.response.contenttype="application/json; charset=utf-8" http.response.duration=472.633675ms http.response.status=500 http.response.written=117 instance.id=3e6c32fe-fd63-4e3d-8582-a5bb02710f84 vars.name=registry version=v2.6.2

10.193.28.184 - - [09/Nov/2017:12:02:29 +0000] "POST /v2/registry/blobs/uploads/ HTTP/1.1" 500 117 "" "docker/1.12.6 go/go1.7.4 kernel/3.10.0-514.26.1.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))"

Outcomes