docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 288 forks source link

docker builder commands (except version) hang #13557

Open jurisra opened 1 year ago

jurisra commented 1 year ago

Description

Removed docker and data (C:\Users\juris.rats\AppData\local\docker) and installed fresh docker desktop. Started it and run docker builder ls from VSCode. This hangs (as well as other commands like build). The diagnostics show an error: are the backend processes running? 1 error occurred:

I had problems with docker build previously but it was possible to recover using clean/purge data (wsl) or restore factory defaults or docker / computer restart. Today I tried those again plus manually removed data files and reinstalled both docker and VSCode. docker builder still not responding. Regards Juris Rats

Reproduce

  1. Install docker desktop on windows 10 (v4.20.1)
  2. Start docker engine
  3. Start VSCode
  4. Run docker builder ls

Expected behavior

The command prints something

docker version

Client:
 Cloud integration: v1.0.33
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        cb74dfc
 Built:             Thu May 25 21:53:15 2023
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Desktop 4.20.1 (110738)
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       659604f
  Built:            Thu May 25 21:52:17 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    24.0.2
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.10.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.18.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.19
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scan.exe
  scout: Command line tool for Docker Scout (Docker Inc.)
    Version:  v0.12.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 24.0.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: 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: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc version: v1.1.7-0-g860f061
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
 Kernel Version: 5.15.90.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 7.76GiB
 Name: docker-desktop
 ID: b85df764-4c68-499f-8c5d-88f607d46e5b
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support

Diagnostics ID

E0F3EF48-7E2D-4B78-990A-7DCF29CFDAA3/20230620123643

Additional Info

I have two contexts in VSCode - one connects to local docker engine, another to remote docker swarm. The problem submitted relates to the local context 20230620123643.zip

mrmorrandir commented 1 year ago

Additional Info

Same issue when using update function in Docker Desktop v4.16.0 (Docker version 20.10.22)

After uninstalling Docker Desktop v4.22.01 and reinstalling Docker Desktop v4.16.0 everything works as expected again.

jurisra commented 1 year ago

I found out that the problem was with my domain name which is accessible for me only through VPN. After connecting VPN the diagnostics run successfully for v4.16.0. Diagnosis for version 4.20.1 returns error 1 : The test: are the backend processes running? Failed with: 1 error occurred:

djs55 commented 1 year ago

Thanks for your report.

Unfortunately the error about vpnkit.exe is misleading -- it's a bug in the diagnostics program.

I couldn't see anything unusual in the diagnostics logs from E0F3EF48-7E2D-4B78-990A-7DCF29CFDAA3/20230620123643 .

There will be a new release of Docker soon, perhaps try again with that version. If it still doesn't work, reproduce the problem and upload another set of diagnostics.