Skip to content

Hyper-V isolation uses only 2 cores. #1877

@notanaverageman

Description

@notanaverageman

Please, check https://docs.docker.com/docker-for-win/troubleshoot/.
Issues without logs and details cannot be debugged, and will be closed.

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have submitted Diagnostics
  • I have included the Diagnostics ID in this Issue
  • Windows Version: Windows 10 Enterprise 1709 - 16299.309
  • Docker for Windows Version: 18.03.0-ce-rc4

Expected behavior

Container uses all the available cores.

Actual behavior

Container uses only 2 cores.

Information

The following command reports that only 2 cores are available. The cpu usage is also limited to only 2 cores.
docker run microsoft/windowsservercore WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors

The issue can also be seen on Windows Server 2016 with hyperv isolation:
docker run --isolation=hyperv microsoft/windowsservercore WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors

However running first command on Windows Server 2016 gives the expected output and the containers use all available cores.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions