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

add --allow-root Alternatively start #65

Closed
wants to merge 2 commits into from
Closed

Conversation

haru01
Copy link

@haru01 haru01 commented Sep 9, 2017

don't start "Alternatively, you can start a Jupyter Notebook server and interact with Anaconda via your browser"

log
"Running as root is not recommended. Use --allow-root to bypass."

don't start   "Alternatively, you can start a Jupyter Notebook server and interact with Anaconda via your browser"

log
"Running as root is not recommended. Use --allow-root to bypass."
@Youness-e
Copy link

A better way to resolve this problem is create a user in your container like this:

docker run -i -t -p 8888:8888 continuumio/anaconda3 /bin/bash -c "useradd dev --create-home && mkdir /opt/notebooks && chown dev:dev /opt/notebooks && su - dev -c \"/opt/conda/bin/conda install jupyter -y --quiet && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser\""

@dbast
Copy link
Member

dbast commented Jul 26, 2021

thx. The example got updated by #236 and should now work.

A full non-root solution would create a user and then also use the USER and WORKDIR directives to set this up already at image creation time.

@dbast dbast closed this Jul 26, 2021
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

Successfully merging this pull request may close these issues.

3 participants