Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在AWS上的Windows Server 2019上运行Linux Docker容器_Docker - Fatal编程技术网

无法在AWS上的Windows Server 2019上运行Linux Docker容器

无法在AWS上的Windows Server 2019上运行Linux Docker容器,docker,Docker,我在AWS上安装了windows server 2019,并且按照以下说明安装和设置了Linux Docker容器 Install-Module DockerMsftProvider -Force Install-Package Docker -ProviderName DockerMsftProvider -Force Restart-Computer $configfile =@" { "experimental":true } "@

我在AWS上安装了windows server 2019,并且按照以下说明安装和设置了Linux Docker容器

Install-Module DockerMsftProvider -Force

Install-Package Docker -ProviderName DockerMsftProvider -Force

Restart-Computer

$configfile =@"
{
    "experimental":true
}
"@

$configfile|Out-File -FilePath c:\ProgramData\docker\config\daemon.json -Encoding ascii -Force

[Environment]::SetEnvironmentVariable("LCOW_SUPPORTED", "1", "Machine")

Invoke-WebRequest -Uri "https://github.com/linuxkit/lcow/releases/download/v4.14.35-v0.3.9/release.zip" -UseBasicParsing -OutFile release.zip
Expand-Archive release.zip -DestinationPath "$Env:ProgramFiles\Linux Containers\."

Restart-Service Docker
但是,在运行任何Linux映像时,我都会遇到以下错误:

    PS C:\Users\Administrator> docker run --rm -it --platform=linux ubuntu bash
docker: Error response from daemon: failed to start service utility VM (createreadwrite): hcsshim::CreateComputeSystem 4242d968c7830dd923c657267486ea32ae9d843c76041d3b4beb39146efc5ea2_svm: The virtual machine could not be started because a required feature is not installed.
(extra info: {"SystemType":"container","Name":"4242d968c7830dd923c657267486ea32ae9d843c76041d3b4beb39146efc5ea2_svm","Layers":null,"HvPartition":true,"HvRuntime":{"ImagePath":"C:\\Program Files\\Linux Containers","LinuxInitrdFile":"initrd.img","LinuxKernelFile":"kernel"},"ContainerType":"linux","TerminateOnLastHandleClosed":true}).
See 'docker run --help'.
此外,还启用了容器功能和Hyper-V角色

这是docker版本信息

我关注了大部分的文章和博客,并在过去的几个小时里使用了不同版本的Docker EE(包括预览版),但都没有用。有人能解决类似的问题吗?感谢您的帮助。如果需要更多信息,请告诉我