Docker Community Forums

Share and learn in the Docker community.

Change virtual CPUs for MobyLinuxVM from CLI


(Kostnermo) #1

Hi everyone,

I am looking for a way to change the number of CPUs assigned to the Docker VM from the CLI, similar to what you can do in the Powershell with RAM, like:

Set-VM -StaticMemory -Name MobyLinuxVM -MemoryStartupBytes 8GB

Now, I obviously can’t do:

Set-VMProcessor MobyLinuxVM -Count ‘4’

during run-time which means that I need to stop and restart the VM. If I do this with the CLi, I receive a:

docker: error during connect: …

as I guess some networking setting won’t be set that way.

In short, I am essentially looking for a way to control this from the CLI:

Any ideas if this is possible out of the box?

Best,

Patrick


Windows 10 ( build 16299.19)
Version 17.09.0-ce-win33 (13620)