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

Dockerfile CMD contains unsupported flag --allow-root #1539

Closed
jsnowacki opened this issue Jun 13, 2016 · 5 comments · Fixed by #1603
Closed

Dockerfile CMD contains unsupported flag --allow-root #1539

jsnowacki opened this issue Jun 13, 2016 · 5 comments · Fixed by #1603

Comments

@jsnowacki
Copy link

The jupyter/notebook base Dockerfile contains line:

CMD ["jupyter", "notebook", "--no-browser", "--allow-root"]

which causes an error:

[36mjupyter_1  | [0m [C 14:51:25.484 NotebookApp] Bad config encountered during initialization:
[36mjupyter_1  | [0m [C 14:51:25.484 NotebookApp] Unrecognized flag: '--allow-root'

It seems that the flag has been removed from Jupyter, as removing the offending flag --allow-root fixes the issue and the Docker image seems to work fine.

Cheers,

Jakub

@takluyver
Copy link
Member

It was only added less than a month ago - #1468. The --allow-root flag was a recent addition (#1115), not a recent removal.

@jsnowacki
Copy link
Author

Thanks for the clarification. The bottom line is that if you pull docker image from the docker hub, i.e. https://hub.docker.com/r/jupyter/notebook/, it throws the above error. I'm currently using the docker-stack images, i.e. https://github.com/jupyter/docker-stacks, and, indeed, they work fine.

@takluyver
Copy link
Member

I'm not exactly sure how docker hub works, but it sounds like you're getting a released version of the notebook code with the master version of the Dockerfile. Since they're in the same repo, they ought to be used in sync. I see on #1468 a suggestion about removing the Dockerfile from this repo entirely in favour of docker-stacks, though.

@Carreau Carreau added this to the no action milestone Jun 14, 2016
FRosner added a commit to FRosner/docker-jupyter that referenced this issue Jun 22, 2016
@Baughn
Copy link

Baughn commented Jul 7, 2016

The instructions in the github README still causes this error. How am I practically speaking intended to install this?

@minrk
Copy link
Member

minrk commented Jul 8, 2016

@Baughn the docker bit in the README should have been removed; it's gone in #1603. The notebook can be installed with pip install notebook. A developer install can be made from master with:

git clone https://github.com/jupyter/notebook
cd notebook
pip install -e .

If you want to build an image that includes a release of the notebook, start from one of the docker-stacks.

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

Successfully merging a pull request may close this issue.

5 participants