在具有Linux容器功能的Windows 10版本1709上运行Portainer

时间:2017-11-30 20:10:12

标签: linux windows powershell docker windows-subsystem-for-linux

使用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我开始尝试使用Docker for Windows 17.11 CE并启用了本机Linux容器功能。运行此代码时,我收到以下错误:

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.

0 个答案:

没有答案
相关问题