You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ You can use a stack image to do any of the following (and more):
11
11
12
12
- Start a personal Jupyter Server with the JupyterLab frontend (default)
13
13
- Run JupyterLab for a team using JupyterHub
14
-
- Start a personal Jupyter Notebook server in a local Docker container
14
+
- Start a personal Jupyter Server with the Jupyter Notebook frontend in a local Docker container
15
15
- Write your own project Dockerfile
16
16
17
17
## Quick Start
@@ -20,14 +20,14 @@ You can try a [relatively recent build of the jupyter/base-notebook image on myb
20
20
by simply clicking the preceding link.
21
21
Otherwise, the examples below may help you get started if you [have Docker installed](https://docs.docker.com/get-docker/),
22
22
know [which Docker image](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html) you want to use
23
-
and want to launch a single Jupyter Server in a container.
23
+
and want to launch a single Jupyter Application in a container.
24
24
25
25
The [User Guide on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/) describes additional uses and features in detail.
26
26
27
27
**Example 1:**
28
28
29
29
This command pulls the `jupyter/scipy-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host.
30
-
It then starts a container running a Jupyter Server and exposes the container's internal port `8888` to port `10000` of the host machine:
30
+
It then starts a container running a Jupyter Server with the JupyterLab frontend and exposes the container's internal port `8888` to port `10000` of the host machine:
31
31
32
32
```bash
33
33
docker run -p 10000:8888 jupyter/scipy-notebook:2023-07-25
@@ -41,12 +41,12 @@ where:
41
41
-`hostname` is the name of the computer running Docker
42
42
-`token` is the secret token printed in the console.
43
43
44
-
The container remains intact for restart after the Jupyter Server exits.
44
+
The container remains intact for restart after the Server exits.
45
45
46
46
**Example 2:**
47
47
48
48
This command pulls the `jupyter/datascience-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host.
49
-
It then starts an _ephemeral_ container running a Jupyter Server and exposes the server on host port 10000.
49
+
It then starts an _ephemeral_ container running a Jupyter Server with the JupyterLab frontend and exposes the server on host port 10000.
50
50
51
51
```bash
52
52
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook:2023-07-25
@@ -83,18 +83,13 @@ We'd also like to invite members of the community to help with two maintainer ac
83
83
Anyone in the community can jump in and help with these activities anytime.
84
84
We will happily grant additional permissions (e.g., the ability to merge PRs) to anyone who shows an ongoing interest in working on the project.
85
85
86
-
## Jupyter Notebook Deprecation Notice
86
+
## Choosing Jupyter frontend
87
87
88
-
Following [Jupyter Notebook notice](https://github.com/jupyter/notebook#notice), JupyterLab is now the default for all the Jupyter Docker stack images.
88
+
JupyterLab is the default for all the Jupyter Docker Stacks images.
89
89
It is still possible to switch back to Jupyter Notebook (or to launch a different startup command).
90
90
You can achieve this by passing the environment variable `DOCKER_STACKS_JUPYTER_CMD=notebook` (or any other valid `jupyter` subcommand) at container startup;
91
91
more information is available in the [documentation](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#alternative-commands).
92
92
93
-
According to the Jupyter Notebook project status and its compatibility with JupyterLab,
94
-
these Docker images may remove the classic Jupyter Notebook interface altogether in favor of another _classic-like_ UI built atop JupyterLab.
95
-
96
-
This change is tracked in the issue [#1217](https://github.com/jupyter/docker-stacks/issues/1217); please check its content for more information.
97
-
98
93
## Alternatives
99
94
100
95
-[jupyter/repo2docker](https://github.com/jupyterhub/repo2docker) - Turn git repositories into
Copy file name to clipboardExpand all lines: docs/using/common.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
# Common Features
2
2
3
-
Except for `jupyter/docker-stacks-foundation`, a container launched from any Jupyter Docker Stacks image runs a Jupyter Server with a JupyterLab frontend.
3
+
Except for `jupyter/docker-stacks-foundation`, a container launched from any Jupyter Docker Stacks image runs a Jupyter Server with the JupyterLab frontend.
4
4
The container does so by executing a `start-notebook.sh` script.
5
5
This script configures the internal container environment and then runs `jupyter lab`, passing any command-line arguments received.
6
6
7
7
This page describes the options supported by the startup script and how to bypass it to run alternative commands.
8
8
9
9
## Jupyter Server Options
10
10
11
-
You can pass [Jupyter server options](https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html) to the `start-notebook.sh` script when launching the container.
11
+
You can pass [Jupyter Server options](https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html) to the `start-notebook.sh` script when launching the container.
12
12
13
-
1. For example, to secure the Notebook server with a [custom password](https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html#preparing-a-hashed-password)
13
+
1. For example, to secure the Jupyter Server with a [custom password](https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html#preparing-a-hashed-password)
14
14
hashed using `jupyter_server.auth.passwd()` instead of the default token,
15
15
you can run the following (this hash was generated for the `my-password` password):
16
16
@@ -19,7 +19,7 @@ You can pass [Jupyter server options](https://jupyter-server.readthedocs.io/en/l
2. To set the [base URL](https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html#running-the-notebook-with-a-customized-url-prefix) of the notebook server, you can run the following:
22
+
2. To set the [base URL](https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html#running-the-notebook-with-a-customized-url-prefix) of the Jupyter Server, you can run the following:
23
23
24
24
```bash
25
25
docker run -it --rm -p 8888:8888 jupyter/base-notebook \
@@ -28,7 +28,7 @@ You can pass [Jupyter server options](https://jupyter-server.readthedocs.io/en/l
28
28
29
29
## Docker Options
30
30
31
-
You may instruct the `start-notebook.sh` script to customize the container environment before launching the notebook server.
31
+
You may instruct the `start-notebook.sh` script to customize the container environment before launching the Server.
32
32
You do so by passing arguments to the `docker run` command.
33
33
34
34
### User-related configurations
@@ -133,7 +133,7 @@ or executables (`chmod +x`) to be run to the paths below:
133
133
134
134
-`/usr/local/bin/start-notebook.d/` - handled **before** any of the standard options noted above are applied
135
135
-`/usr/local/bin/before-notebook.d/` - handled **after** all the standard options noted above are applied
136
-
and ran right before the notebook server launches
136
+
and ran right before the Server launches
137
137
138
138
See the `run-hooks` function in the [`jupyter/base-notebook start.sh`](https://github.com/jupyter/docker-stacks/blob/main/docker-stacks-foundation/start.sh)
Credit: [britishbadger](https://github.com/britishbadger) from [docker-stacks/issues/369](https://github.com/jupyter/docker-stacks/issues/369)
463
463
464
-
## Run Jupyter Notebook/Lab inside an already secured environment (i.e., with no token)
464
+
## Run Server inside an already secured environment (i.e., with no token)
465
465
466
466
(Adapted from [issue 728](https://github.com/jupyter/docker-stacks/issues/728))
467
467
468
468
The default security is very good.
469
469
There are use cases, encouraged by containers, where the jupyter container and the system it runs within lie inside the security boundary.
470
470
It is convenient to launch the server without a password or token in these use cases.
471
-
In this case, you should use the `start.sh` script to launch the server with no token:
471
+
In this case, you should use the `start-notebook.sh` script to launch the server with no token:
Copy file name to clipboardExpand all lines: docs/using/running.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ The following are some common patterns.
16
16
**Example 1:**
17
17
18
18
This command pulls the `jupyter/scipy-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host.
19
-
It then starts a container running a Jupyter Notebook server and exposes the server on host port 8888.
20
-
The server logs appear in the terminal and include a URL to the notebook server.
19
+
It then starts a container running Jupyter Server with the JupyterLab frontend and exposes the server on host port 8888.
20
+
The server logs appear in the terminal and include a URL to the server.
21
21
22
22
```bash
23
23
docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-07-25
@@ -33,7 +33,7 @@ docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-07-25
33
33
# or http://127.0.0.1:8888/lab?token=f31f2625f13d131f578fced0fc76b81d10f6c629e92c7099
34
34
```
35
35
36
-
Pressing `Ctrl-C` twice shuts down the notebook server but leaves the container intact on disk for later restart or permanent deletion using commands like the following:
36
+
Pressing `Ctrl-C` twice shuts down the Server but leaves the container intact on disk for later restart or permanent deletion using commands like the following:
37
37
38
38
```bash
39
39
# list containers
@@ -54,14 +54,14 @@ docker rm 221331c047c4
54
54
**Example 2:**
55
55
56
56
This command pulls the `jupyter/r-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host.
57
-
It then starts a container running a Jupyter Notebook server and exposes the server on host port 10000.
58
-
The server logs appear in the terminal and include a URL to the notebook server, but with the internal container port (8888) instead of the correct host port (10000).
57
+
It then starts a container running Server and exposes the server on host port 10000.
58
+
The server logs appear in the terminal and include a URL to the Server, but with the internal container port (8888) instead of the correct host port (10000).
59
59
60
60
```bash
61
61
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/r-notebook:2023-07-25
62
62
```
63
63
64
-
Pressing `Ctrl-C` twice shuts down the notebook server and immediately destroys the Docker container.
64
+
Pressing `Ctrl-C` twice shuts down the Server and immediately destroys the Docker container.
65
65
New files and changes in `~/work` in the container will be preserved.
66
66
Any other changes made in the container will be lost.
67
67
@@ -78,7 +78,7 @@ where:
78
78
79
79
-`--detach`: will run the container in detached mode
80
80
81
-
You can also use the following docker commands to see the port and notebook server token:
81
+
You can also use the following docker commands to see the port and Jupyter Server token:
82
82
83
83
```bash
84
84
# get the random host port assigned to the container port 8888
@@ -131,8 +131,8 @@ subgidSize=$(( $(podman info --format "{{ range .Host.IDMappings.GIDMap }}+{{.Si
131
131
```
132
132
133
133
This command pulls the `docker.io/jupyter/r-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host.
134
-
It then starts a container running a Jupyter Server and exposes the server on host port 10000.
135
-
The server logs appear in the terminal and include a URL to the notebook server, but with the internal container port (8888) instead of the correct host port (10000).
134
+
It then starts a container running a Jupyter Server with the JupyterLab frontend and exposes the server on host port 10000.
135
+
The server logs appear in the terminal and include a URL to the server, but with the internal container port (8888) instead of the correct host port (10000).
136
136
137
137
```bash
138
138
podman run -it --rm -p 10000:8888 \
@@ -156,7 +156,7 @@ The `podman run` option `--userns=auto` will, for instance, not be possible to u
156
156
The example could be improved by investigating more in detail which UIDs and GIDs need to be available in the container and then only map them.
157
157
```
158
158
159
-
Pressing `Ctrl-C` twice shuts down the notebook server and immediately destroys the Docker container.
159
+
Pressing `Ctrl-C` twice shuts down the Server and immediately destroys the Docker container.
160
160
New files and changes in `~/work` in the container will be preserved.
161
161
Any other changes made in the container will be lost.
0 commit comments