mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-16 06:22:56 +00:00
Add notes on changing password when using OpenShift templates.
This commit is contained in:
@@ -191,6 +191,29 @@ Start up the notebook again.
|
|||||||
oc scale dc/mynotebook --replicas 1
|
oc scale dc/mynotebook --replicas 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Changing the Notebook Password
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
The password for the notebook is supplied as a template parameter, or if not supplied will be automatically generated by the template. It will be passed into the container through an environment variable.
|
||||||
|
|
||||||
|
If you want to change the password, you can do so by editing the environment variable on the deployment configuration.
|
||||||
|
|
||||||
|
```
|
||||||
|
oc set env dc/mynotebook JUPYTER_NOTEBOOK_PASSWORD=mypassword
|
||||||
|
```
|
||||||
|
|
||||||
|
This will trigger a new deployment so ensure you have downloaded any work if not using a persistent volume.
|
||||||
|
|
||||||
|
If using a persistent volume, you could instead setup a password in the file:
|
||||||
|
|
||||||
|
```
|
||||||
|
/home/jovyan/work/.jupyter/jupyter_notebook_config.py
|
||||||
|
```
|
||||||
|
|
||||||
|
as per guidelines in:
|
||||||
|
|
||||||
|
* https://jupyter-notebook.readthedocs.io/en/stable/public_server.html
|
||||||
|
|
||||||
Deploying from a Custom Image
|
Deploying from a Custom Image
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user