Skip to content

Remote building through SSH is hanging without explicit --driver=docker-container option #1293

@siketyan

Description

@siketyan

Description

Building images through SSH using remote driver is not working now, since v0.9.0.
BuildX hangs after calling docker buildx build command with no stdout/stderr output.

Remote building hangs after calling docker buildx build or docker buildx create --bootstrap until passing --driver=docker-container option explicitly, since v0.9.0.

According to @jedevc this is because BuildX waits until the server accepts connections to buildkitd instance.

I created a builder using the command line below:

docker buildx create --bootstrap --name ec2 --platform linux/arm64 ssh://siketyan@[redacted].ap-northeast-1.compute.amazonaws.com

Affected versions

v0.9.0 or newer (confirmed on both v0.9.0 and v0.9.1)

Environment

Ubuntu 20.04 LTS (amd64)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions