Skip to content

Conversation

@rjurney
Copy link

@rjurney rjurney commented Aug 6, 2019

I need to sudo pip install libraries, so I have enabled the GRANT_SUDO option. As outlined in this section: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#docker-options under -e GRANT_SUDO=yes:

-e GRANT_SUDO=yes - Instructs the startup script to grant the NB_USER user passwordless sudo capability. You do not need this option to allow the user to conda or pip install additional packages. This option is useful, however, when you wish to give $NB_USER the ability to install OS packages with apt or modify other root-owned files in the container. For this option to take effect, you must run the container with --user root. (The start-notebook.sh script will su $NB_USER after adding $NB_USER to sudoers.) You should only enable sudo if you trust the user or if the container is running on an isolated host.

Closes #54

I need to `sudo pip install` libraries, so I have enabled the `GRANT_SUDO` option. As outlined in this section: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#docker-options under `-e GRANT_SUDO=yes`:

```
-e GRANT_SUDO=yes - Instructs the startup script to grant the NB_USER user passwordless sudo capability. You do not need this option to allow the user to conda or pip install additional packages. This option is useful, however, when you wish to give $NB_USER the ability to install OS packages with apt or modify other root-owned files in the container. For this option to take effect, you must run the container with --user root. (The start-notebook.sh script will su $NB_USER after adding $NB_USER to sudoers.) You should only enable sudo if you trust the user or if the container is running on an isolated host.
```
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.

Unable to pip install/sudo pip install new modules on JupyterLab Server: root password unknown

1 participant