mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Update example date
This commit is contained in:
10
README.md
10
README.md
@@ -26,11 +26,11 @@ The [User Guide on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/
|
||||
|
||||
**Example 1:**
|
||||
|
||||
This command pulls the `jupyter/scipy-notebook` image tagged `2023-07-31` from Docker Hub if it is not already present on the local host.
|
||||
This command pulls the `jupyter/scipy-notebook` image tagged `2023-08-19` from Docker Hub if it is not already present on the local host.
|
||||
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:
|
||||
|
||||
```bash
|
||||
docker run -p 10000:8888 jupyter/scipy-notebook:2023-07-31
|
||||
docker run -p 10000:8888 jupyter/scipy-notebook:2023-08-19
|
||||
```
|
||||
|
||||
You can modify the port on which the container's port is exposed by [changing the value of the `-p` option](https://docs.docker.com/engine/reference/run/#expose-incoming-ports) to `-p 8888:8888`.
|
||||
@@ -45,11 +45,11 @@ The container remains intact for restart after the Server exits.
|
||||
|
||||
**Example 2:**
|
||||
|
||||
This command pulls the `jupyter/datascience-notebook` image tagged `2023-07-31` from Docker Hub if it is not already present on the local host.
|
||||
This command pulls the `jupyter/datascience-notebook` image tagged `2023-08-19` from Docker Hub if it is not already present on the local host.
|
||||
It then starts an _ephemeral_ container running a Jupyter Server with the JupyterLab frontend and exposes the server on host port 10000.
|
||||
|
||||
```bash
|
||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook:2023-07-31
|
||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook:2023-08-19
|
||||
```
|
||||
|
||||
The use of the `-v` flag in the command mounts the current working directory on the host (`${PWD}` in the example command) as `/home/jovyan/work` in the container.
|
||||
@@ -119,7 +119,7 @@ more information is available in the [documentation](https://jupyter-docker-stac
|
||||
- We publish containers for both `x86_64` and `aarch64` platforms
|
||||
- Single-platform images have either `aarch64-` or `x86_64-` tag prefixes, for example, `jupyter/base-notebook:aarch64-python-3.10.5`
|
||||
- Starting from `2022-09-21`, we create multi-platform images (except `tensorflow-notebook`)
|
||||
- Starting from `2023-07-31`, we create multi-platform `tensorflow-notebook` image as well
|
||||
- Starting from `2023-08-19`, we create multi-platform `tensorflow-notebook` image as well
|
||||
|
||||
## Using old images
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
# https://hub.docker.com/r/jupyter/base-notebook/tags
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$OWNER/base-notebook:2023-07-31
|
||||
ARG BASE_CONTAINER=$OWNER/base-notebook:2023-08-19
|
||||
FROM $BASE_CONTAINER
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
@@ -12,6 +12,6 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
ENV TAG="2023-07-31"
|
||||
ENV TAG="2023-08-19"
|
||||
|
||||
COPY --chown=${NB_UID}:${NB_GID} binder/README.ipynb "${HOME}"/README.ipynb
|
||||
|
@@ -15,12 +15,12 @@ The following are some common patterns.
|
||||
|
||||
**Example 1:**
|
||||
|
||||
This command pulls the `jupyter/scipy-notebook` image tagged `2023-07-31` from Docker Hub if it is not already present on the local host.
|
||||
This command pulls the `jupyter/scipy-notebook` image tagged `2023-08-19` from Docker Hub if it is not already present on the local host.
|
||||
It then starts a container running Jupyter Server with the JupyterLab frontend and exposes the server on host port 8888.
|
||||
The server logs appear in the terminal and include a URL to the server.
|
||||
|
||||
```bash
|
||||
docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-07-31
|
||||
docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-08-19
|
||||
|
||||
# Entered start.sh with args: jupyter lab
|
||||
|
||||
@@ -39,7 +39,7 @@ Pressing `Ctrl-C` twice shuts down the Server but leaves the container intact on
|
||||
# list containers
|
||||
docker ps --all
|
||||
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
# 221331c047c4 jupyter/scipy-notebook:2023-07-31 "tini -g -- start-no…" 11 seconds ago Exited (0) 8 seconds ago cranky_benz
|
||||
# 221331c047c4 jupyter/scipy-notebook:2023-08-19 "tini -g -- start-no…" 11 seconds ago Exited (0) 8 seconds ago cranky_benz
|
||||
|
||||
# start the stopped container
|
||||
docker start --attach 221331c047c4
|
||||
@@ -53,12 +53,12 @@ docker rm 221331c047c4
|
||||
|
||||
**Example 2:**
|
||||
|
||||
This command pulls the `jupyter/r-notebook` image tagged `2023-07-31` from Docker Hub if it is not already present on the local host.
|
||||
This command pulls the `jupyter/r-notebook` image tagged `2023-08-19` from Docker Hub if it is not already present on the local host.
|
||||
It then starts a container running Server and exposes the server on host port 10000.
|
||||
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).
|
||||
|
||||
```bash
|
||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/r-notebook:2023-07-31
|
||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/r-notebook:2023-08-19
|
||||
```
|
||||
|
||||
Pressing `Ctrl-C` twice shuts down the Server and immediately destroys the Docker container.
|
||||
@@ -137,7 +137,7 @@ subuidSize=$(( $(podman info --format "{{ range .Host.IDMappings.UIDMap }}+{{.Si
|
||||
subgidSize=$(( $(podman info --format "{{ range .Host.IDMappings.GIDMap }}+{{.Size }}{{end }}" ) - 1 ))
|
||||
```
|
||||
|
||||
This command pulls the `docker.io/jupyter/r-notebook` image tagged `2023-07-31` from Docker Hub if it is not already present on the local host.
|
||||
This command pulls the `docker.io/jupyter/r-notebook` image tagged `2023-08-19` from Docker Hub if it is not already present on the local host.
|
||||
It then starts a container running a Jupyter Server with the JupyterLab frontend and exposes the server on host port 10000.
|
||||
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).
|
||||
|
||||
@@ -146,7 +146,7 @@ podman run -it --rm -p 10000:8888 \
|
||||
-v "${PWD}":/home/jovyan/work --user $uid:$gid \
|
||||
--uidmap $uid:0:1 --uidmap 0:1:$uid --uidmap $(($uid+1)):$(($uid+1)):$(($subuidSize-$uid)) \
|
||||
--gidmap $gid:0:1 --gidmap 0:1:$gid --gidmap $(($gid+1)):$(($gid+1)):$(($subgidSize-$gid)) \
|
||||
docker.io/jupyter/r-notebook:2023-07-31
|
||||
docker.io/jupyter/r-notebook:2023-08-19
|
||||
```
|
||||
|
||||
```{warning}
|
||||
|
Reference in New Issue
Block a user