我想在Windows系统上部署我的应用程序。我最近(昨天)在我的Windows 10上安装了DockerToolbox-1.12.4
。这给了我一个新的终端。当我试图与docker-compose up --build
部署我PROJET,我收到此按摩:错误 - Docker-compose/docker Windows
ERROR: for myservice Cannot create container for myService: create \var\run\docker.socker: "\\var\\run\\docker.sock" includes invalid characters for a local volume name, only "[...][...]" are allowed
此服务包含
和其他错误是:
ERROR: for service2 Cannont create container for service service2: Invalid bind mount spec "c:\\Users\\username\\Desktop\\project\\service2:/home/docker/code:rw" Encountered errors while bringing up projet
。我的项目有4个容器,其他2个没有错误信息。
这里是我的搬运工,compose.yml文件:
version: '2'
services:
s1:
build: ../images/s1
ports:
- "5000:5000"
links: ["s2"]
s2:
build: ../images/s2
ports:
- "9000:9000"
service2:
build: ../images/service2
ports:
- "4000:4000"
volumes:
- ../images/service2:/home/docker/code
myService:
build: ../images/myService
ports:
- "7000:7000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
我应该怎么做才能让这个作品? 你能帮忙解决吗?
我的码头工人的版本是:docker version 1.12.4, build 1564f02
我的搬运工,撰写的版本是:docker-compose version 1.9.0, build 2585387