Skip to content

Add a Docker Hub authentication retry loop for Docker #266

Description

@LEX0RE

I recently got an error that need a manual restart from the container because he wasn't able to connect to Docker DNS just after a computer restart. Here is the log :

time=2026-08-15T20:45:11.343Z level=ERROR msg="failed to get auth token" error="Get "https://auth.docker.io/token?service=registry.docker.io&scope=repository:library/redis:pull\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving"

Probably git-pkgs/proxy should retry a Docker Hub authentication/DNS request to make sure it doesn't stay stuck in a not authentificated loop and need a manual restart.

I just restart manually the contain and it fixed it (like 4 hours after the PC reboot completely), but it still a manual step that couldn't always be made quick

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions