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 4.22.1 creating hundreds of processes. #6962

Closed
mcmoyer opened this issue Sep 3, 2023 · 1 comment
Closed

Docker 4.22.1 creating hundreds of processes. #6962

mcmoyer opened this issue Sep 3, 2023 · 1 comment

Comments

@mcmoyer
Copy link

Description

Woke my Mac up to find it was using 24 GB of swap even though it's got 64 GB of ram on board. The process tree was filled with hundreds of similar lines like:

mcmoyer          98823   0.0  0.0 34907100  19060   ??  S    Sat06AM   0:21.18 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98822   0.0  0.0 34934924  10200   ??  S    Sat06AM   0:06.78 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98821   0.0  0.0 34907636  12284   ??  S    Sat06AM   0:20.36 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98815   0.0  0.0 34934412  10324   ??  S    Sat06AM   0:06.88 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98814   0.0  0.0 34907624  12272   ??  S    Sat06AM   0:20.70 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98811   0.0  0.0 34926784  10200   ??  S    Sat06AM   0:06.74 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98810   0.0  0.0 34907100  18972   ??  S    Sat06AM   0:20.92 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98809   0.0  0.0 34934668  10208   ??  S    Sat06AM   0:06.53 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98808   0.0  0.0 34907892  12304   ??  S    Sat06AM   0:20.97 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98807   0.0  0.0 34934668  10268   ??  S    Sat06AM   0:06.91 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98806   0.0  0.0 34908404  18880   ??  S    Sat06AM   0:21.39 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98805   0.0  0.0 34934668  10256   ??  S    Sat06AM   0:07.31 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98804   0.0  0.0 34908672  18864   ??  S    Sat06AM   0:18.95 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98803   0.0  0.0 34934668  10448   ??  S    Sat06AM   0:07.15 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98802   0.0  0.0 34907356  12288   ??  S    Sat06AM   0:19.20 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98796   0.0  0.0 34935936  10256   ??  S    Sat06AM   0:07.00 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98795   0.0  0.0 34906320  18888   ??  S    Sat06AM   0:19.50 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98794   0.0  0.0 34934668  10316   ??  S    Sat06AM   0:07.16 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98793   0.0  0.0 34905808  18752   ??  S    Sat06AM   0:19.47 /Applications/Docker.app/Contents/Resources/bin/docker stats --all --no-trunc --no-stream --format {{ json .}}
mcmoyer          98792   0.0  0.0 34934668   6220   ??  S    Sat05AM   0:06.81 /Applications/Docker.app/Contents/Resources/bin/com.docker.cli stats --all --no-trunc --no-stream --format {{ json .}}

As soon as I quit docker desktop, swap usage returned to normal.

Reproduce

open docker desktop

Expected behavior

docker desktop should not create hundreds of processes

docker version

Client:
 Cloud integration: v1.0.35-desktop+001
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.6
 Git commit:        ced0996
 Built:             Fri Jul 21 20:32:30 2023
 OS/Arch:           darwin/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.22.1 (118664)
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.6
  Git commit:       a61e2b4
  Built:            Fri Jul 21 20:35:45 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.5
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2-desktop.1
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.20.2-desktop.1
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-compose
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.20
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-extension
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.6
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-sbom
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-scan
  scout: Command line tool for Docker Scout (Docker Inc.)
    Version:  0.20.0
    Path:     /Users/mcmoyer/.docker/cli-plugins/docker-scout

Server:
 Containers: 5
  Running: 2
  Paused: 0
  Stopped: 3
 Images: 35
 Server Version: 24.0.5
 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 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: unconfined
  cgroupns
 Kernel Version: 5.15.49-linuxkit-pr
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 15.64GiB
 Name: docker-desktop
 ID: cc311d68-0368-46cd-a8ac-2271a89b4b09
 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

Diagnostics ID

02D40AA3-9019-4E00-AF8B-C57986E95DED/20230903205150

Additional Info

No response

@lorenrh
Copy link
Member

Hello,

This issue has been fixed in the latest 4.24.0 release. You can see the latest release notes here.

I'll close the issue for now, but let us know if the issue persists.

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

3 participants