Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Question of "--allow-root" when installed caffe2 on Docker Toolbox in windows 10 #1141

Closed
qians17 opened this issue Aug 29, 2017 · 1 comment

Comments

@qians17
Copy link

qians17 commented Aug 29, 2017

Hi,

I am working on install caffe2 by dockers on windows 10. I am following the instruction from https://caffe2.ai/docker/caffe2-docker-usb/readme.html. Because it claims that it has a hyper-V issue, I use docker Toolbox instead. Right now I am facing an issue that when I try to run:
"docker run -it -p 8888:8888 c2.gpu.tutorial.0.7.0 sh -c "jupyter notebook --no-browser --ip 0.0.0.0 /caffe2/caffe2/python/tutorials""

It will show an error that:
[I 17:27:25.979 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[C 17:27:26.001 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.

I google the general solution to add --allow-root flag on dockers but none of them run in windows and use Docker Toolbox but not Docker. I am new to caffe2 and Docker. Could anyone tell me how to fix this issue?

Thanks,

@Yangqing
Copy link
Contributor

Seems to be a jupyter issue running in a docker container. Quick google search revealed the following:

jupyter/notebook#2375
jupyter/notebook#1539

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

No branches or pull requests

2 participants