Skip to content

Client.Timeout exceeded while awaiting headers #64

Closed

Description

@crazy-max

While boostraping a builder, I encountered the following exception:

  /usr/bin/docker buildx inspect --bootstrap --builder builder-8911b936-26d9-48a2-8170-162f38eb730e
  #1 [internal] booting buildkit
  #1 sha256:3caa0fb6ce20487f1e7f91f51b4919a58916b18bd26a2a507e41f4b5250c9946
  #1 pulling image moby/buildkit:buildx-stable-1
  #1 pulling image moby/buildkit:buildx-stable-1 15.0s done
  #1 ERROR: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
  ------
   > [internal] booting buildkit:
  ------
  Name:   builder-8911b936-26d9-48a2-8170-162f38eb730e
  Driver: docker-container
  
  Nodes:
  Name:     builder-8911b936-26d9-48a2-8170-162f38eb730e0
  Endpoint: unix:///var/run/docker.sock
  Error:    Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

The action step should fail on docker buildx inspect --bootstrap ... because that's the default behavior in the toolkit interface. So I think that's an issue with buildx. WDYT @tonistiigi?

Activity

  1. tonistiigi commented on Apr 3, 2021

    @tonistiigi
    Member

    Looks like a network timeout when connecting to hub to pull buildkit image. The error doesn't come from buildx but from docker directly.

  2. crazy-max commented on Apr 3, 2021

    @crazy-max
    MemberAuthor

    @tonistiigi

    The error doesn't come from buildx but from docker directly.

    Yes that's it so should be handled here in buildx? Error doesn't seem processed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions