There is a panic issue with Docker Registry latest (current version 2.7.0)
panic: unable to configure authorization (token): token auth requires a valid option bool: autoredirect
For those with this problem, replace in your compose file the registry image from latest to 2.6.2
You can use registry:latest if you add the following env variable to your registry environment:
services:
...
registry:
image: registry:latest
environment:
- REGISTRY_AUTH_TOKEN_AUTOREDIRECT=false
At the moment, this is the only 'documentation' I have found: https://github.com/docker/distribution/issues/2793
Info about the corresponding PR: https://github.com/docker/distribution/pull/2711
Hey,
it seems that it's a problem from the registry, because 2.7.0 is not semver. It violates it through this setting.
To fix it in your instance you can set the following env:
REGISTRY_AUTH_TOKEN_AUTOREDIRECT=true
````
or use it in your config.yml:
```yml
...
token:
autoredirect: true
service: container_registry
issuer: gitlab-issuer
...
Oh you was 19 seconds earlier than my post. But It fixes the problem.
Based on what I have read, the value false maintains the old behavior, but I'm not sure about if true is more correct.
This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.
Maybe this is not working as expected...
