Registry autoredirect is not required anymore
We introduced the autoredirect
flag to our registry config because docker was requiring it to be present. (see #436 (closed))
Although, docker recently updated the regitry to set autoredirect:false
by default. (see registry:2.7.1)
Furthermore, when we added autoredirect
, we've added with default true
, however, maybe because we're running the newer version of the registry, now true
value makes the registry fail to communicate with the realm
.
The message seen on a GitLab Auto DevOps pipeline build stage is:
And the registry logs print out:
The solution should be simply to go back to not setting this flag at all and allows the default to be false
.
Here is documentation on the autoredirect
flag:
https://github.com/docker/distribution/blob/master/docs/configuration.md#token