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

Windows 10 Path issues #94

Open
sonicviz opened this issue Apr 1, 2018 · 1 comment
Open

Windows 10 Path issues #94

sonicviz opened this issue Apr 1, 2018 · 1 comment

Comments

@sonicviz
Copy link

sonicviz commented Apr 1, 2018

Hi,
I'm trialing the first course in audit mode before signing up for the full paid course.

I'm familiar with Docker, or at least I thought I was, but running into an issue getting the notebook started.

echo $(pwd) returns

E:\Source Control\AI\cadl

so then if I run the recommended command:

E:\Source Control\AI\cadl> docker run -it -p 8888:8888 -p 6006:6006 -v /$(pwd)/session-1:/notebooks --name tf cadl /bin/bash

I get an error:

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Mount denied:
The source path "/E:\Source Control\AI\cadl/session-0"
is not a valid Windows path.

Note:
I can get jupyter running aok by removing the $(pwd) [ie: docker run -it -p 8888:8888 -p 6006:6006 -v /session-1:/notebooks --name tf cadl /bin/bash ]
but
root@39c4441bcde8:/notebooks# ls
shows nothing as it's not in the correct subdirectory.
It does not show "README.md lecture-1.ipynb libs session-1.ipynb tests" but just an empty directory.
However, I can load the notebooks manually, but not sure how the subfolder content paths will be handled.

Any clues?

@gregaton
Copy link

gregaton commented Feb 6, 2019

First, you need to share the drive where the code is checked out, in your case drive E.
https://docs.docker.com/docker-for-windows/#shared-drives

Then you need to change the mounting path slightly so it starts with ${PWD} for powershell or %cd% for cmd.
Powershell example:
docker run -it -p 8888:8888 -p 6006:6006 -v ${pwd}/session-1:/notebooks --name tf cadl /bin/bash

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