{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/2806","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/2806/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/2806/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/2806/events","html_url":"https://github.com/docker/distribution/issues/2806","id":397013943,"node_id":"MDU6SXNzdWUzOTcwMTM5NDM=","number":2806,"title":"Private registry with local s3 (Minio) can't push/pull","user":{"login":"batreseau","id":5255313,"node_id":"MDQ6VXNlcjUyNTUzMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5255313?v=4","gravatar_id":"","url":"https://api.github.com/users/batreseau","html_url":"https://github.com/batreseau","followers_url":"https://api.github.com/users/batreseau/followers","following_url":"https://api.github.com/users/batreseau/following{/other_user}","gists_url":"https://api.github.com/users/batreseau/gists{/gist_id}","starred_url":"https://api.github.com/users/batreseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batreseau/subscriptions","organizations_url":"https://api.github.com/users/batreseau/orgs","repos_url":"https://api.github.com/users/batreseau/repos","events_url":"https://api.github.com/users/batreseau/events{/privacy}","received_events_url":"https://api.github.com/users/batreseau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-01-08T17:42:20Z","updated_at":"2019-06-17T13:35:21Z","closed_at":"2019-06-17T13:35:21Z","author_association":"NONE","body":"Hello\r\n\r\nI have somes troubles to set a local S3 storage with Docker Registry V2\r\n\r\nConfiguration:\r\n     Minio local S3 (10.126.33.89:9001)\r\n     Docker Registry V2 with certs (10.126.33.86:5000)\r\n\r\nProblem:\r\n     When i try to push an image on my private registry, i got an \"Retrying in 5 second\" and i can't push any image . For the storage, i use Minio. I can access to Minio interface and create bucket but Docker registry can't use it. When i check logs of Docker Registry, i see somes errors:\r\n\r\n`time=\"2019-01-08T16:55:49Z\" level=error msg=\"response completed with error\" auth.user.name=\"registry_user\" err.code=UNKNOWN err.detail=\"Put https://s3-external-1.amazonaws.com/registry/docker/registry/v2/repositories/weaveworks/weave-npc/_uploads/fa7a4f5b-f309-42a9-8edf-62d0905e0ffe/startedat: dial tcp: lookup s3-external-1.amazonaws.com: no such host\" err.message=\"unknown error\" go.version=go1.4.3 http.request.host=\"10.126.33.86:5000\" http.request.id=72636208-260b-4f17-8bff-48c8d6b7feb3 http.request.method=POST http.request.remoteaddr=\"10.126.33.86:57744\" http.request.uri=\"/v2/weaveworks/weave-npc/blobs/uploads/\" http.request.useragent=\"docker/18.06.1-ce go/go1.10.3 git-commit/e68fc7a kernel/4.15.0-20-generic os/linux arch/amd64 UpstreamClient(Docker-Client/18.06.1-ce \\\\(linux\\\\))\" http.response.contenttype=\"application/json; charset=utf-8\" http.response.duration=20.021824718s http.response.status=500 http.response.written=382 instance.id=d8545380-6d54-420a-b59c-749f680ea5de vars.name=\"weaveworks/weave-npc\" version=v2.2.0\r\n`\r\n\r\nI think the problem is Registry try to push image on AWS, not on my local S3:\r\ndial tcp: lookup s3-external-1.amazonaws.com: no such host\r\n\r\nMy Registry image was build from official Registry V2 and a config file.\r\n\r\nDocker Registry Config file:\r\n`version: 0.1\r\nlog:\r\n    fields:\r\n        service: registry\r\nhttp:\r\n    addr: :5000\r\nstorage:\r\n    cache:\r\n        layerinfo: inmemory\r\n    s3:\r\n        accesskey: #MASKED#\r\n        secretkey: #MASKED#\r\n        region: us-east-1\r\n        regionendpoint: http://10.126.33.89:9001/\r\n        bucket: registry\r\n        encrypt: false\r\n        secure: true\r\n        v4auth: true\r\n        chunksize: 5242880\r\n        rootdirectory: /\r\n`\r\n\r\nDocker Registry start command:\r\n`docker run -v /registry:/var/lib/registry -v /certs:/certs -v /auth:/auth -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt -e REGISTRY_HTTP_TLS_KEY=/certs/registry.key -e REGISTRY_AUTH=htpasswd -e \"REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm\" -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd --restart=always -p 5000:5000 -d --name=registry registrym`\r\n\r\nIf someone can help me :)\r\n\r\nThanks"}}
{"actor":{"display_login":"batreseau"}}