Closed
Description
System: Window 7/64
With:
Boot2Docker version 1.5.0, build master : a66bce5 - Tue Feb 10 23:31:27 UTC 2015
docker run \
-v /c/Users/Dieter/Documents/Gastrobase:/home/shiny/Gastrobase \
hello-world
is a valid command. This is a simplified and function-less test version, see below for the "real" one. Note that /Dieter is a valid user, please replace for testing.
With
$ docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 4749651
OS/Arch (client): windows/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 4749651
OS/Arch (server): linux/amd64
I could not find out how to define the path in -v; I tried several of the variants mentioned in the docs of 1.5 on shared folders.
$ docker run \
> -v /c/Users/Dieter/Documents/Gastrobase:/home/shiny/Gastrobase \
> hello-world
invalid value "c:\\Users\\Dieter\\Documents\\Gastrobase;C:\\Program Files (x86)\\Git\\home\\shiny\\Gastrobase" for flag -v: \Users\Dieter\Documents\Ga
strobase;C:\Program Files (x86)\Git\home\shiny\Gastrobase is not an absolute path
See 'c:\Program Files\Boot2Docker for Windows\docker.exe run --help'.
---- Real application -------------
docker run --restart=always --name gastrobase -d -p 3838:3838 \
-v /c/Users/Dieter/Documents/Gastrobase:/home/shiny/Gastrobase \
dmenne/gastro-docker
Dieter@DIETERPC ~
$ docker run --restart=always --name gastrobase -d -p 3838:3838 \
> -v /c/Users/Dieter/Documents/Gastrobase:/home/shiny/Gastrobase \
> dmenne/gastro-docker
invalid value "c:\\Users\\Dieter\\Documents\\Gastrobase;C:\\Program Files (x86)\\Git\\home\\shiny\\Gastrobase" for flag -v: \Users\Dieter\Documents\Ga
strobase;C:\Program Files (x86)\Git\home\shiny\Gastrobase is not an absolute path
See 'c:\Program Files\Boot2Docker for Windows\docker.exe run --help'.
Metadata
Assignees
Labels
No labels