在带有Linux容器function的Windows 10版本1709上运行Portainer

当使用Docker for Windows 17.09 CE时,我可以在PowerShell控制台上运行以下代码:

docker service create ` --name portainer ` --publish 9000:9000 ` --constraint 'node.role == manager' ` --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock ` portainer/portainer ` -H unix:///var/run/docker.sock

现在我正在运行Windows 10版本1709我开始尝试使用启用了本机Linux容器function的Docker for Windows 17.11 CE。 运行此代码时,出现以下错误:

invalid mount target, must be an absolute path: /var/run/docker.sock

我怎样才能解决这个问题?

– 编辑:

我也尝试没有--mount指令:

docker service create ` --name portainer ` --publish 9000:9000 ` --constraint 'node.role == manager' ` portainer/portainer ` -H unix:///var/run/docker.sock

这导致了以下错误:

overall progress: 0 out of 1 tasks 1/1: HNS failed with error : The parameter is incorrect.