Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid volume specification #30

Closed
mpaine-act opened this issue Apr 24, 2019 · 2 comments
Closed

Invalid volume specification #30

mpaine-act opened this issue Apr 24, 2019 · 2 comments

Comments

@mpaine-act
Copy link

mpaine-act commented Apr 24, 2019

Hello,

I am trying to execute the docker command line in PowerShell in Windows Server 2019 (using Hyper-V and PowerShell package Docker as DockerProvider), but I cannot get the openstreetmap-data volume to mount. Here is the output when I try:

`PS D:> docker volume ls
DRIVER VOLUME NAME
local openstreetmap-data

PS D:> docker run -v openstreetmap-data:/var/lib/postgresql/10/main overv/openstreetmap-tile-server
C:\Program Files\Docker\docker.exe: Error response from daemon: invalid bind mount spec "openstreetmap-data:/var/lib/postgresql/10/main": invalid volume specification: 'openstreetmap-data:\var\lib\postgresql\10\main'.
See 'C:\Program Files\Docker\docker.exe run --help'.
`

@Istador
Copy link
Contributor

Istador commented Apr 24, 2019

I'm no docker on windows expert, but my windows colleagues often have problems with volumes (and windows line endings and missing execute bits for shell scripts).

Please try out the double slash syntax:

docker run -v openstreetmap-data://var/lib/postgresql/10/main overv/openstreetmap-tile-server run

@mpaine-act
Copy link
Author

That was it, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants