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

Error when running miniconda3 as per current documentation #113

Closed
santosomar opened this issue Jan 19, 2019 · 2 comments
Closed

Error when running miniconda3 as per current documentation #113

santosomar opened this issue Jan 19, 2019 · 2 comments

Comments

@santosomar
Copy link

I am running the container as per the example in Docker Hub and here and I am getting the following error:

[I 20:13:39.828 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[C 20:13:40.069 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.

Of course, you can use --allow-root to bypass. However, this is not secure.

@santosomar
Copy link
Author

Forgot to add the syntax that I am using (which is the same as the documentation):

docker run -i -t  -p $8888:8888 continuumio/miniconda3:latest /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='0.0.0.0' --port=8888 --no-browser"

@jdblischak
Copy link

@santosomar I was able to run Jupyter by setting --ip='0.0.0.0' and --allow-root. See #85 (comment)

Of course, you can use --allow-root to bypass. However, this is not secure.

The only user defined in the Docker image is the root user. If you want a non-root user, you'll need to create your own Docker image that builds on this one. Another workaround is described in #65 (comment)

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