Skip to content

ssh context timed out (workaround: ControlPersist) #315

@AkihiroSuda

Description

@AkihiroSuda
$ docker context create my-arm-instance --docker host=ssh://me@my-arm-instance
$ docker buildx ls
NAME/NODE         DRIVER/ENDPOINT  STATUS PLATFORMS
my-arm-instance   docker                  
  my-arm-instance my-arm-instance  listing workers: failed to list workers: rpc error: code = DeadlineExceeded desc = context deadline exceeded
...

A workaround is to set ControlPersist in ~/.ssh/config:

ControlMaster auto
ControlPath ~/.ssh/control-%C
ControlPersist yes

This workaroud is not needed for docker --context=my-arm-instance info|version|run.

BuildX version: v0.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions