Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker 20.10+SSH] Cannot build on remote Engine since 0.12.0 #2356

Open
3 tasks done
LaXiS96 opened this issue Mar 26, 2024 · 0 comments
Open
3 tasks done

[docker 20.10+SSH] Cannot build on remote Engine since 0.12.0 #2356

LaXiS96 opened this issue Mar 26, 2024 · 0 comments

Comments

@LaXiS96
Copy link

LaXiS96 commented Mar 26, 2024

Contributing guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

I originally reported this issue in the compose repository: docker/compose#11165

Either building via compose or with docker buildx build . hangs for a while and then exits with an error.

I can successfully build images with 0.11.2, while all versions since 0.12.0 including the latest one fail.

The environment is:

  • Windows 10 with Docker CLI v26.0.0
  • remote Docker Engine on Photon OS 4 Rev2 in HyperV virtual machine on the same Windows 10 host
  • DOCKER_HOST=ssh://root@10.42.64.1 where 10.42.64.1 is the virtual machine
  • DOCKER_BUILDKIT=1

The issue could be related to SSH authentication, since even plain docker commands take a while to do anything for no apparent reason, and I've been noticing this since switching from certificate authentication.

Expected behaviour

Running docker buildx build . and the image being built

Actual behaviour

docker buildx build . hangs for about 3 minutes (consistent timing every time) and returns this error:

[+] Building 0.0s (0/0) docker:default
ERROR: listing workers for Build: failed to list workers: Unavailable: connection error: desc = "transport: failed to write client preface: write |1: file already closed"

Buildx version

github.com/docker/buildx v0.13.1 7884339

Docker info

Client:
 Version:    26.0.0
 Context:    default
 Debug Mode: true
 Plugins:
    Path:     C:\Users\me\.docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.20.0
    Path:     C:\Users\me\.docker\cli-plugins\docker-compose.exe

Server:
 Containers: 6
  Running: 1
  Paused: 0
  Stopped: 5
 Images: 11
 Server Version: 20.10.14
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc version:
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.10.162-1.ph4
 Operating System: VMware Photon OS/Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 6
 Total Memory: 7.773GiB
 Name: photon-9662f57d592b
 ID: 37P5:MBLZ:TGUE:HROE:PPZN:56OC:RT7J:ODLZ:B4PZ:URHC:3OGI:EQJJ
 Debug Mode: false
  File Descriptors: 33
  System Time: 2024-03-26T09:52:09.406820113Z
  EventsListeners: 0
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

Builders list

NAME/NODE   DRIVER/ENDPOINT   STATUS    BUILDKIT   PLATFORMS
default*                      error

Cannot load builder default: Get "http://docker.example.com/_ping": context deadline exceeded

Configuration

Not relevant

Build logs

No response

Additional info

No response

@tonistiigi tonistiigi changed the title Cannot build on remote Engine since 0.12.0 [docker 20.10+SSH] Cannot build on remote Engine since 0.12.0 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant