You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is in the context of a fresh install of Docker for Windows, a freshly downloaded mcr.microsoft.com/windows:20H2 image (I've reproduced the problem on mcr.microsoft.com/windows/nanoserver:ltsc2022 and mcr.microsoft.com/windows/servercore:ltsc2022 images), and I have restarted my (Windows 11 Pro OS) PC. And yes, Hyper-v is enabled:
Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online
FeatureName : Microsoft-Hyper-V-All
DisplayName : Hyper-V
Description : Provides services and management tools for creating and running virtual machines and their resources.
RestartRequired : Possible
State : Enabled
CustomProperties :
I am running all commands from PowerShell, but am no longer using PS ISE. Edit: Just tested in CMD shell and same errors.
Description
the --name flag causes an error when used with docker run.
This works: docker run -it mcr.microsoft.com/windows:20H2 --isolation=hyperv
I get a CLI for the container, everything is good.
This doesn't work: docker run -it mcr.microsoft.com/windows:20H2 --isolation=hyperv --name=workstation_1
When I add the --name=workstation_1 argument, which according to docker run --help is a valid argument:
I get this error:
docker: Error response from daemon: container 1118d316b0700307943bec10392b39266b79db08350311618fb5bfc247e2fa8d encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2)
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF6EBB1A40B: (caller: 00007FF6EBAD5C8B) Exception(1) tid(398) 80070002 The system cannot find the file specified.
CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
Provider: 00000000-0000-0000-0000-000000000000].
Steps to reproduce the issue:
Launch Windows 11 Pro.
Activate Docker for Windows.
Run docker run -it mcr.microsoft.com/windows:20H2 --isolation=hyperv --name=workstation_1
Describe the results you received:
docker: Error response from daemon: container 1118d316b0700307943bec10392b39266b79db08350311618fb5bfc247e2fa8d encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2)
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF6EBB1A40B: (caller: 00007FF6EBAD5C8B) Exception(1) tid(398) 80070002 The system cannot find the file specified.
CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
Provider: 00000000-0000-0000-0000-000000000000].
This problem is in the context of a fresh install of Docker for Windows, a freshly downloaded
mcr.microsoft.com/windows:20H2
image (I've reproduced the problem onmcr.microsoft.com/windows/nanoserver:ltsc2022
andmcr.microsoft.com/windows/servercore:ltsc2022
images), and I have restarted my (Windows 11 Pro OS) PC. And yes, Hyper-v is enabled:I am running all commands from PowerShell, but am no longer using PS ISE. Edit: Just tested in CMD shell and same errors.
Description
the
--name
flag causes an error when used withdocker run
.This works:
docker run -it mcr.microsoft.com/windows:20H2 --isolation=hyperv
I get a CLI for the container, everything is good.
This doesn't work:
docker run -it mcr.microsoft.com/windows:20H2 --isolation=hyperv --name=workstation_1
When I add the
--name=workstation_1
argument, which according todocker run --help
is a valid argument:I get this error:
Steps to reproduce the issue:
docker run -it mcr.microsoft.com/windows:20H2 --isolation=hyperv --name=workstation_1
Describe the results you received:
As an alternative, I tried:
and
Since
docker create --help
indicates this is also a valid argument:And this doesn't fail, but it also doesn't name the container.
Describe the results you expected:
A new (working) container with the name specified. A container does get made by the above code, it's just broken.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
I'm running a valid, licensed copy of Windows 11 Pro on a physical PC.
The text was updated successfully, but these errors were encountered: