Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Last active October 26, 2021 11:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasmiranda/8510147c901d4ec2c7655ad7b646b51b to your computer and use it in GitHub Desktop.
Save douglasmiranda/8510147c901d4ec2c7655ad7b646b51b to your computer and use it in GitHub Desktop.
Docker Registry (Distribution) + Minio/s3: fix the "Retrying in X seconds" | failed with status: 503 Service Unavailable

In fact it could be a number of other issues, that are covered in google results for this problem.

But one of them could be just the redirect config.

More: https://github.com/docker/distribution/blob/master/docs/configuration.md#redirect

in /etc/docker/registry/config.yml

storage:
  # ...
  redirect:
    disable: false

in docker-compose.yml

services:
  registry:
    image: registry:2
    environment:
      # ...
      - REGISTRY_STORAGE_REDIRECT_DISABLE=true

Other issues that may show this error are:

  • Wrong Minio credentials in your Registry configuration
  • The port 9000 of Minio container is not exposed
  • Remember to create on Minio the bucket you informed on Registry
  • Another error related to this is something like: {"errors":[{"code":"UNAVAILABLE","message":"service unavailable","detail":"health check failed: please see /debug/health"}]}, if that's the case, remember to check if there's some file in your bucket, Registry seems to fail when using remote storage and the bucket is empty, there's a fix, it's already merged, but not released yet (04-06-2018).
@ybelleguic
Copy link

Thanks for the tip, I was struggling with this problem for 1 hour

@osddeitf
Copy link

Thank you so much, I'm struggled and didn't know why my configuration not work.

@sinahamedheidari
Copy link

Great tip. Thanks.
I had the same issue your tip resolved my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment