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).
Thank you so much, I'm struggled and didn't know why my configuration not work.