-
Notifications
You must be signed in to change notification settings - Fork 119
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
Containers report one extra CPU core #7010
Comments
Sangeppato
changed the title
Docker Desktop allocates one extra CPU core
Containers report one extra CPU core
Oct 4, 2023
Looks like it's fixed in 4.25.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In Docker Desktop 4.24 the containers see one extra CPU core compared to the ones actually available to the VM
Reproduce
lscpu
(or even in the "Containers" view in the Dashboard)Expected behavior
The correct number of CPU cores should be seen
docker version
Client: Cloud integration: v1.0.35+desktop.5 Version: 24.0.6 API version: 1.43 Go version: go1.20.7 Git commit: ed223bc Built: Mon Sep 4 12:28:49 2023 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.24.0 (122432) Engine: Version: 24.0.6 API version: 1.43 (minimum version 1.12) Go version: go1.20.7 Git commit: 1a79695 Built: Mon Sep 4 12:31:36 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
7534C0A5-9659-4A6B-A7E3-299BBD4B9F2C/20231003151833
Additional Info
EDIT:
When running
stress
inside a container I can see that the VM utilizes the correct number of cores.Inside a container
nproc
reports the correct number of cores, whilenproc --all
lscpu
andcat /proc/cpuinfo
all report one extra core. So it looks like the VM has access to one extra core but each process is limited to the correct number (as indicated bynproc
)?The text was updated successfully, but these errors were encountered: