Skip to content

[v25 rc.2 Regression] BUILDX_EXPERIMENTAL=1 hangs #47073

@AkihiroSuda

Description

@AkihiroSuda

Description

In Docker v25.0.0-rc.2 (buildx v0.12.1), BUILDX_EXPERIMENTAL=1 docker build hangs.
Non-experimental mode still works.

Both were working in v25.0.0-rc.1 (buildx v0.12.0).

Reproduce

rc.2 (hangs):

$ docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS  BUILDKIT             PLATFORMS
default * docker                                       
  default default         running v0.12.4+3b6880d2a00f linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/amd64/v4, linux/386

$ BUILDX_EXPERIMENTAL=1 docker build .
[+] Building 0.0s (0/1)                                                                                                                 docker:default
 => [internal] connecting to local controller                                                                                                     0.0s
(hangs up)

rc.1 (works):

$ docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS  BUILDKIT             PLATFORMS
default * docker                                       
  default default         running v0.12.4+3b6880d2a00f linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/amd64/v4, linux/386

$ BUILDX_EXPERIMENTAL=1 docker build .
[+] Building 10.4s (7/7) FINISHED                                                                                                       docker:default
 => [internal] connecting to local controller                                                                                                     0.0s
 => [internal] load build definition from Dockerfile                                                                                              0.1s
 => => transferring dockerfile: 67B                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/busybox:latest                                                                                 8.6s
 => [internal] load .dockerignore                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                   0.0s
 => [1/2] FROM docker.io/library/busybox:latest@sha256:ba76950ac9eaa407512c9d859cea48114eeff8a6f12ebaa5d32ce79d4a017dd8                           0.8s
 => => resolve docker.io/library/busybox:latest@sha256:ba76950ac9eaa407512c9d859cea48114eeff8a6f12ebaa5d32ce79d4a017dd8                           0.0s
 => => sha256:ba76950ac9eaa407512c9d859cea48114eeff8a6f12ebaa5d32ce79d4a017dd8 9.52kB / 9.52kB                                                    0.0s
 => => sha256:cca7bbfb3cd4dc1022f00cee78c51aa46ecc3141188f0dd520978a620697e7ad 858B / 858B                                                        0.0s
 => => sha256:9211bbaa0dbd68fed073065eb9f0a6ed00a75090a9235eca2554c62d1e75c58f 581B / 581B                                                        0.0s
 => => sha256:a307d6ecc6205dfa11d2874af9adb7e3fc244a429e00e8e3df90534d4cf0f3f8 2.22MB / 2.22MB                                                    0.4s
 => => extracting sha256:a307d6ecc6205dfa11d2874af9adb7e3fc244a429e00e8e3df90534d4cf0f3f8                                                         0.2s
 => [2/2] RUN touch /hello                                                                                                                        0.4s
 => exporting to image                                                                                                                            0.1s
 => => exporting layers                                                                                                                           0.1s
 => => writing image sha256:059f89cdb4fee378d980c9fcec60e2ef29b25c6be54857d8a9cffb14d5828bcc                                                      0.0s

Expected behavior

Shouldn't hang.

docker version

Client:
 Version:           25.0.0-rc.2
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        1fc6ef9
 Built:             Fri Jan 12 21:50:24 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          25.0.0-rc.2
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       608238e
  Built:            Fri Jan 12 21:26:18 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.7.12
  GitCommit:        71909c1814c544ac47ab91d2e8b84718e517bb99
 runc:
  Version:          1.1.11
  GitCommit:        v1.1.11-0-g4bccb38
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    25.0.0-rc.2
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1
    Path:     /usr/local/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.0
    Path:     /usr/local/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 25.0.0-rc.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 71909c1814c544ac47ab91d2e8b84718e517bb99
 runc version: v1.1.11-0-g4bccb38
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.15.0-91-generic
 Operating System: Alpine Linux v3.19 (containerized)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 3.814GiB
 Name: 12dc4511aa27
 ID: 4cd0ff22-572c-4bee-8cf1-265e4769fc04
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions