cli icon indicating copy to clipboard operation
cli copied to clipboard

Invalid Volume Specification

Open Ingosmar89219 opened this issue 9 years ago • 3 comments

osmarvirux@joelvirux MINGW64 ~
$ docker run --rm -v C:\Dev-Ops\scaling-AWS-docker-Rails rails:4 rails new --sk
ip-bundle dockerzon
docker: Error response from daemon: invalid volume spec "C:Dev-Opsscaling-AWS-do
cker-Rails": invalid volume specification: 'C:Dev-Opsscaling-AWS-docker-Rails':
invalid mount config for type "volume": invalid mount path: 'Dev-Opsscaling-AWS-
docker-Rails' mount path must be absolute.
See 'C:\Program Files\Docker Toolbox\docker.exe run --help'.

Im using WINDOWS 8.1

please help me :(

Ingosmar89219 avatar Jun 26 '17 02:06 Ingosmar89219

Please provide all the necessary version information: https://github.com/docker/cli/blob/master/.github/ISSUE_TEMPLATE.md

dnephin avatar Jun 29 '17 17:06 dnephin

Based on "MINGW64", and the error-message;

invalid volume specification: 'C:Dev-Opsscaling-AWS-docker-Rails'

You're using backslashes in your path, which are an escape character, thus C:\foo is being converted to C:foo, which is invalid.

Try double-escaping the backslashes (C:\\foo\\bar), or possibly forward-slashes (/c/foo/bar). This comment may also be helpful; https://github.com/moby/moby/issues/31370#issuecomment-282758977

Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting bugs and feature requests. For other type of questions, consider using one of;

I'm going to close this issue because this is not a bug, but feel free to continue the conversation 👍

thaJeztah avatar Jun 29 '17 20:06 thaJeztah

For posterity, I was getting a Invalid Volume Specification error during a tutorial and eventually figured out that I was running Windows Containers instead of Linux Containers (the instructor failed to mention this prerequisite). Switching to Linux Containers resolved my issue.

westim avatar May 11 '18 15:05 westim