{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/docker-registry-becomes-unavailable-and-returns-503","result":{"data":{"allGhostPost":{"edges":[{"node":{"title":"Docker Registry Becomes Unavailable and Returns \"503 Service Unavailable\" on All Requests With The S3 Storage Driver","html":"

I just ran into this issue myself so I hope this helps others. I set up a new Docker Registry following the documentation and configured the S3 storage driver to use DigitalOcean Spaces.

\n

I created a new Space to host the registry's data.

\n

That was the issue. Docker Registry (now called Distribution?) didn't like the fact that the Space (or S3 bucket) was empty. Per this suggestion on the related GitHub issue, I uploaded a random file to my Space. That took care of the issue.

\n

For the record, here's the config I'm using:

\n
storage:\n  s3:\n    region: us-east-1\n    regionendpoint: https://ams3.digitaloceanspaces.com\n    bucket: SPACE NAME HERE\n    encrypt: false\n    secure: true\n    v4auth: true\n    chunksize: 5242880\n    rootdirectory: /\n
\n

with the Spaces API tokens passed through these two env vars:

\n
REGISTRY_STORAGE_S3_ACCESSKEY=\nREGISTRY_STORAGE_S3_SECRETKEY=\n
\n
\n

Config source—thanks ASB! 😄
\nI had to remove the keyid: mykeyid line for it to work.

\n
\n","published_at":"2018-08-17T00:07:34.000+03:00","slug":"docker-registry-becomes-unavailable-and-returns-503","tags":[],"plaintext":"I just ran into this issue myself so I hope this helps others. I set up a new\nDocker Registry following the documentation\n[https://docs.docker.com/registry/deploying/] and configured the S3 storage\ndriver to use DigitalOcean Spaces.\n\nI created a new Space to host the registry's data.\n\nThat was the issue. Docker Registry (now called Distribution?) didn't like the\nfact that the Space (or S3 bucket) was empty. Per this suggestion on the\nrelated\nGitHub issue, I uploaded a random file to my Space. That took care of the issue.\n\nFor the record, here's the config I'm using:\n\nstorage:\n s3:\n region: us-east-1\n regionendpoint: https://ams3.digitaloceanspaces.com\n bucket: SPACE NAME HERE\n encrypt: false\n secure: true\n v4auth: true\n chunksize: 5242880\n rootdirectory: /\n\n\nwith the Spaces API tokens passed through these two env vars:\n\nREGISTRY_STORAGE_S3_ACCESSKEY=\nREGISTRY_STORAGE_S3_SECRETKEY=\n\n\nConfig source [https://kmln.sr/70nk4RY]—thanks ASB! 😄\nI had to remove the keyid: mykeyid line for it to work.","meta_description":null}}]}},"pageContext":{"slug":"docker-registry-becomes-unavailable-and-returns-503","prev":"transparent-vue-wrapper-components","next":"dropin-chatops-turning-existing-workflows-and-scripts-into-slack-commands"}},"staticQueryHashes":["3649515864"]}