You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
volumes: in docker-compose.yml error with invalid type or invalid volume error on Windows Server 2016 TP4 #2487
(On Windows Server 2016 TP4) Specifying volumes: key in docker-compose.yml file gives error of invalid type, it should be an array or Invalid volume specification: The docker-compose.yml looks like this for the first error:
foobar:
image: microsoft/iisnet: defaultvolumes: c:\foo:c:\barcommand: cmd /c type Hello
PS C:\Users\Administrator\compose2> docker-compose up -d
Validation failed, reason(s):
Service 'foobar' configuration key 'volumes' contains an invalid type, it should be an array
foobar:
image: microsoft/iisnet: defaultvolumes:
- c:\foo:c:\barcommand: cmd /c type Hello
The command docker run -v c:/foo:c:/bar --name test1 windowsservercore cmd works fine and mounts the volume correctly.
Here is the version:
PS C:\Users\Administrator\compose2> docker version
Client:
Version: 1.10.0-dev
API version: 1.22
Go version: go1.5.1
Git commit: 54733ab
Built: Mon Nov 30 19:27:57 UTC 2015
OS/Arch: windows/amd64
Server:
Version: 1.10.0-dev
API version: 1.22
Go version: go1.5.1
Git commit: 54733ab
Built: Mon Nov 30 19:27:57 UTC 2015
OS/Arch: windows/amd64
I don't think we support windows engine volumes just yet. We need to figure out what translation the docker client is doing with this. That second error is coming from the docker engine.
I know there was some debate about the right want to handle windows container paths, but I'm not sure what was done.
Activity
dnephin commentedon Dec 2, 2015
The second compose file looks right.
I don't think we support windows engine volumes just yet. We need to figure out what translation the docker client is doing with this. That second error is coming from the docker engine.
I know there was some debate about the right want to handle windows container paths, but I'm not sure what was done.
powersplay commentedon Dec 2, 2015
I think that @icecrime suggestion was to have windows paths always be enclosed with quotes. That was several months ago.
Should I keep this issue here or move over to engine?
dnephin commentedon Dec 2, 2015
Let's keep it here, I think we need to make changes to Compose.