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
Azure中带有Windows Server的虚拟机不运行基于Linux的Docker容器_Azure_Docker_Windows Server_Windows Server 2019 - Fatal编程技术网

Azure中带有Windows Server的虚拟机不运行基于Linux的Docker容器

Azure中带有Windows Server的虚拟机不运行基于Linux的Docker容器,azure,docker,windows-server,windows-server-2019,Azure,Docker,Windows Server,Windows Server 2019,我尝试在虚拟机上运行基于Linux的Docker容器,该容器来自Azure,使用windowsserver2019 为此,我使用了很多教程,我启用了实验标志,因此docker versionshow: PS C:\Users\azure> docker version Client: Docker Engine - Enterprise Version: 19.03.5 API version: 1.40 Go version: go1

我尝试在
虚拟机上运行基于
Linux
Docker
容器,该容器来自
Azure
,使用
windowsserver2019

为此,我使用了很多教程,我启用了实验标志,因此
docker version
show:

 PS C:\Users\azure> docker version
Client: Docker Engine - Enterprise
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        2ee0c57608
 Built:             11/13/2019 08:00:16
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Docker Engine - Enterprise
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.24)
  Go version:       go1.12.12
  Git commit:       2ee0c57608
  Built:            11/13/2019 07:58:51
  OS/Arch:          windows/amd64
  Experimental:     true
码头工人信息

docker info
Client:
 Debug Mode: false
 Plugins:
  cluster: Manage Docker clusters (Docker Inc., v1.2.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 4
 Server Version: 19.03.5
 Storage Driver: lcow (linux) windowsfilter (windows)
  LCOW:
  Windows:
 Logging Driver: json-file
 Plugins:
  Volume: local
  Network: ics internal l2bridge l2tunnel nat null overlay private transparent
  Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
 Swarm: inactive
 Default Isolation: process
 Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
 Operating System: Windows Server 2019 Datacenter Version 1809 (OS Build 17763.1098)
 OSType: windows
 Architecture: x86_64
 CPUs: 1
 Total Memory: 2GiB
 Name: xxx-yyy
 ID: R2TB:P4GZ:MRU4:IU4A:BPTU:DPYY:GV7C:VNL3:JW6F:IRKJ:BTKW:BVNE
 Docker Root Dir: C:\ProgramData\docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
但最后,当我运行任何Linux容器时,都会出现以下错误:

PS C:\Users\azure> docker run --platform=linux hello-world:linux
docker : C:\Program Files\Docker\docker.exe: Error response from daemon: failed to start 
service utility VM (createreadwrite): hcsshim::CreateComputeSystem 
2410bb8b9e431b1068750d0c79376b1fdc196eef97c0a48ec8571775349acde7_svm: The virtual machine 
could not be started because a required feature is not installed.
At line:1 char:1
+ docker run --platform=linux hello-world:linux
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Program File... not installed.:String) [], 
    RemoteException
    + FullyQualifiedErrorId : NativeCommandError

(extra info: {"SystemType":"container","Name":"2410bb8b9e431b1068750d0c79376b1fdc196eef97c0
a48ec8571775349acde7_svm","Layers":null,"HvPartition":true,"HvRuntime":{"ImagePath":"C:\\Pr
ogram Files\\Linux Containers","LinuxInitrdFile":"initrd.img","LinuxKernelFile":"kernel"},"
ContainerType":"linux","TerminateOnLastHandleClosed":true}).
See 'C:\Program Files\Docker\docker.exe run --help'. 

我错过了蔚蓝的东西?在VM配置中?

我解决了我的问题,这不是配置、docker或Windows Server的问题

问题是硬件-当您选择Azure处理器时,您应该使用具有嵌套虚拟化的处理器。解决方案如下所述: