Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Last active August 18, 2024 11:59
Show Gist options
  • 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).
@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