3

I got the following error inside my gitlab runner:

ERROR: failed to authorize: failed to fetch anonymous token: Get "https://auth.ipv6.docker.com/token?scope=repository%3Alibrary%2Fnode%3Apull&service=registry.docker.io": dial tcp [2600:1f18:2148:bc02:4bf0:3a98:55ae:e3d5]:443: connect: cannot assign requested address

see: https://docs.docker.com/registry/spec/auth/token/

Is there a way to change auth.ipv6.docker.com with auth.ipv4.docker.com somewhere ?

Cliffe
  • 107
  • 1
  • 9
  • Are you using Docker in Docker, by any chance? – vctls Aug 24 '23 at 08:32
  • yes, i'm using dind – Cliffe Aug 24 '23 at 08:40
  • Interesting. We're having the same issue with our Docker runners since yesterday. It may match with this change in Docker Registry: they just enabled IPv6 globally a few hours ago. https://www.docker.com/blog/docker-hub-registry-ipv6-support-now-generally-available/ – vctls Aug 24 '23 at 08:56
  • There are already more reports of the same error here: https://github.com/docker/hub-feedback/issues/2165 – vctls Aug 24 '23 at 09:03
  • In addition to GitHub, Docker is tracking the incident at https://www.dockerstatus.com/pages/incident/533c6539221ae15e3f000031/64e75cde1670c8052e6ffd6d – BMitch Aug 24 '23 at 14:21

1 Answers1

1

This was an outage triggered by Docker IPv6 migration. It has been fixed by Docker upstream so you should no longer see the issue. If you're still having problems with it, follow up in their GitHub issue on the IPv6 migration.

BMitch
  • 231,797
  • 42
  • 475
  • 450