for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Containers not starting after upgrade to 4.42.1

Open lk-1984 opened this issue 1 year ago • 17 comments

Description

I Upgraded Docker Desktop to 4.42.1, and not even docker run hello-world works. Container is created, and then stuck. No logs, nothing, simply stuck.

I did also fresh install, but no luck.

Reproduce

  1. Upgrade to 4.42.1
  2. Run docker run hello-world

Expected behavior

The hello-world container should run.

docker version

Client:
 Version:           28.2.2
 API version:       1.50
 Go version:        go1.24.3
 Git commit:        e6534b4
 Built:             Fri May 30 12:07:35 2025
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.42.1 (196648)
 Engine:
  Version:          28.2.2
  API version:      1.50 (minimum version 1.24)
  Go version:       go1.24.3
  Git commit:       45873be
  Built:            Fri May 30 12:07:27 2025
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.27
  GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da
 runc:
  Version:          1.2.5
  GitCommit:        v1.2.5-0-g59923ef
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

docker info
Client:
 Version:    28.2.2
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  ai: Docker AI Agent - Ask Gordon (Docker Inc.)
    Version:  v1.4.0
    Path:     /Users/dev/.docker/cli-plugins/docker-ai
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.24.0-desktop.2
    Path:     /Users/dev/.docker/cli-plugins/docker-buildx
  cloud: Docker Cloud (Docker Inc.)
    Version:  v0.3.9
    Path:     /Users/dev/.docker/cli-plugins/docker-cloud
  compose: Docker Compose (Docker Inc.)
    Version:  v2.37.1-desktop.1
    Path:     /Users/dev/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.41
    Path:     /Users/dev/.docker/cli-plugins/docker-debug
  desktop: Docker Desktop commands (Docker Inc.)
    Version:  v0.1.9
    Path:     /Users/dev/.docker/cli-plugins/docker-desktop
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.29
    Path:     /Users/dev/.docker/cli-plugins/docker-extension
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     /Users/dev/.docker/cli-plugins/docker-init
  mcp: Docker MCP Plugin (Docker Inc.)
    Version:  dev
    Path:     /Users/dev/.docker/cli-plugins/docker-mcp
  model: Docker Model Runner (Docker Inc.)
    Version:  v0.1.24
    Path:     /Users/dev/.docker/cli-plugins/docker-model
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/dev/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.18.0
    Path:     /Users/dev/.docker/cli-plugins/docker-scout
WARNING: Plugin "/Users/dev/.docker/cli-plugins/docker-dev" is not valid: failed to fetch metadata: fork/exec /Users/dev/.docker/cli-plugins/docker-dev: no such file or directory

Server:
 Containers: 7
  Running: 0
  Paused: 0
  Stopped: 7
 Images: 10
 Server Version: 28.2.2
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 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
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Discovered Devices:
  cdi: docker.com/gpu=webgpu
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 05044ec0a9a75232cad458027ca83437aae3f4da
 runc version: v1.2.5-0-g59923ef
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.10.14-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 16
 Total Memory: 7.653GiB
 Name: docker-desktop
 ID: f32e8c79-d50c-4a6d-9c41-2ab9eb5dc70e
 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
 Labels:
  com.docker.desktop.address=unix:///Users/dev/Library/Containers/com.docker.docker/Data/docker-cli.sock
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: DOCKER_INSECURE_NO_IPTABLES_RAW is set

Diagnostics ID

628CFF6F-BFB5-4FD4-AF33-E2CC55B2DA06/20250701072114

Additional Info

No response

lk-1984 avatar Jul 01 '25 07:07 lk-1984

With 4.41.2 it works.

docker version
Client:
 Version:           28.1.1
 API version:       1.49
 Go version:        go1.23.8
 Git commit:        4eba377
 Built:             Fri Apr 18 09:49:45 2025
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.41.2 (191736)
 Engine:
  Version:          28.1.1
  API version:      1.49 (minimum version 1.24)
  Go version:       go1.23.8
  Git commit:       01f442b
  Built:            Fri Apr 18 09:52:08 2025
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.27
  GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da
 runc:
  Version:          1.2.5
  GitCommit:        v1.2.5-0-g59923ef
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c9c5fd25a1bd: Pull complete 
Digest: sha256:940c619fbd418f9b2b1b63e25d8861f9cc1b46e3fc8b018ccfe8b78f19b8cc4f
Status: Downloaded newer image for hello-world:latest

Hello from Docker!

lk-1984 avatar Jul 01 '25 07:07 lk-1984

I had the same problem, downgrading is also worked for me.

onuruslu avatar Jul 01 '25 14:07 onuruslu

The same for me. I spent 3 days trying to run my project :(

masterjus avatar Jul 01 '25 16:07 masterjus

same issue here, can't start containers in the latest version of Docker Desktop for Mac with Apple Silicon

spaghettiguru avatar Jul 01 '25 17:07 spaghettiguru

same issue here

francisrafal avatar Jul 02 '25 09:07 francisrafal

Here's the solution https://github.com/docker/for-mac/issues/7707#issuecomment-3012477323

masterjus avatar Jul 02 '25 10:07 masterjus

@masterjus How that is the solution? There is some unofficial version that is probably not even supported.

Still having the same issue in the 4.43.2 - containers are only created, but they are not started.

lk-1984 avatar Aug 04 '25 17:08 lk-1984

Although #7707 claims, that this problem should be fixed with 4.43, I still see the same problem after upgrading to 4.43.2 (MacBook Pro, Intel, 15.6).

jdelker avatar Aug 07 '25 07:08 jdelker

@jdelker we just released 4.44. Can you give it a try? If it keeps failing, can you please generate a Diagnostics ID?

bsousaa avatar Aug 07 '25 11:08 bsousaa

@jdelker we just released 4.44. Can you give it a try? If it keeps failing, can you please generate a Diagnostics ID?

@bsousaa: Unfortunately, it does not. Diagnostic-ID: 134CB242-1B5D-46DE-8812-9E3E51E225EB/20250807164204

Maybe worth noting: While running the diagnostic, the test-container was still in it's stale condition

docker run -it --rm alpine
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
9824c27679d3: Pull complete
Digest: sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
Status: Downloaded newer image for alpine:latest

(No shell prompt here, as expected)

I then performed the uninstall to recover back to 4.42.1. After uninstall, the stuck container was aborted - of course - but the message it printed in the shell may contain hints on what it was waiting for:

time="2025-08-07T18:44:56+02:00" level=error msg="error waiting for container: unexpected EOF"
docker: error during connect: Post "http://%2FUsers%2Fdelker%2F.docker%2Frun%2Fdocker.sock/v1.51/containers/020252f18c3fd5efe10cdf082274121f9f4b293ec5bb4116307fbb9301e55867/start": EOF

jdelker avatar Aug 07 '25 16:08 jdelker

I've got this same issue on my company Mac (versions as in this thread), but no issues whatsoever on my personal Mac.

There is the socket hangs notification, but otherwise no errors visible.

ghost avatar Aug 11 '25 06:08 ghost

I've upgraded to 4.45.0 (203075). And Docker starts in a whimp. But some containers that started automatically on versions prior 4.43, they don't' start now. Only those with the option --restart always at docker Run are restarted.

I'll can try to modify some of them but others are not on my hands

delfireinoso avatar Aug 29 '25 15:08 delfireinoso

I upgraded my work MacBook to 4.45.0 and containers are now able to start.

ghost avatar Sep 01 '25 09:09 ghost

I've upgraded to 4.45.0 (203075). And Docker starts in a whimp. But some containers that started automatically on versions prior 4.43, they don't' start now. Only those with the option --restart always at docker Run are restarted.

I'll can try to modify some of them but others are not on my hands

See https://github.com/docker/for-mac/issues/7744

simonberger avatar Sep 02 '25 22:09 simonberger

FYI: Upgrading to 4.45.0 resolved the problem for me now.

jdelker avatar Sep 03 '25 09:09 jdelker

Closing for now as this appears be addressed in 4.45. We can re-open if required. Thank you everyone for the feedback and reports?

thompson-shaun avatar Oct 17 '25 09:10 thompson-shaun

  • Issue still happening in 4.55, on Tahoe M4.
    • Tried purging everything and re-install.
  • I don't have Rosetta2 installed (and don't wish to) -- is it related to that? Seen this as the culprit from several threads for few versions, so perhaps this scenario breaks on each upgrade?
    • I did try the Beta VM though to avoid Rosetta, but it didn't work either.

Let me know what diagnostics I can provide to help debug this.

infinite-persistence avatar Dec 30 '25 11:12 infinite-persistence