mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Update tag example
This commit is contained in:
@@ -30,11 +30,11 @@ Older images are available on Docker Hub, but they will no longer be updated.
|
|||||||
|
|
||||||
### Example 1
|
### Example 1
|
||||||
|
|
||||||
This command pulls the `jupyter/scipy-notebook` image tagged `2024-08-19` from Quay.io if it is not already present on the local host.
|
This command pulls the `jupyter/scipy-notebook` image tagged `2024-08-30` from Quay.io 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:
|
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
|
```bash
|
||||||
docker run -p 10000:8888 quay.io/jupyter/scipy-notebook:2024-08-19
|
docker run -p 10000:8888 quay.io/jupyter/scipy-notebook:2024-08-30
|
||||||
```
|
```
|
||||||
|
|
||||||
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/containers/run/#exposed-ports) to `-p 8888:8888`.
|
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/containers/run/#exposed-ports) to `-p 8888:8888`.
|
||||||
@@ -49,11 +49,11 @@ The container remains intact for restart after the Server exits.
|
|||||||
|
|
||||||
### Example 2
|
### Example 2
|
||||||
|
|
||||||
This command pulls the `jupyter/datascience-notebook` image tagged `2024-08-19` from Quay.io if it is not already present on the local host.
|
This command pulls the `jupyter/datascience-notebook` image tagged `2024-08-30` from Quay.io 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.
|
It then starts an _ephemeral_ container running a Jupyter Server with the JupyterLab frontend and exposes the server on host port 10000.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work quay.io/jupyter/datascience-notebook:2024-08-19
|
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work quay.io/jupyter/datascience-notebook:2024-08-30
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
# https://quay.io/repository/jupyter/base-notebook?tab=tags
|
# https://quay.io/repository/jupyter/base-notebook?tab=tags
|
||||||
ARG REGISTRY=quay.io
|
ARG REGISTRY=quay.io
|
||||||
ARG OWNER=jupyter
|
ARG OWNER=jupyter
|
||||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/base-notebook:2024-08-19
|
ARG BASE_CONTAINER=$REGISTRY/$OWNER/base-notebook:2024-08-30
|
||||||
FROM $BASE_CONTAINER
|
FROM $BASE_CONTAINER
|
||||||
|
|
||||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||||
@@ -13,7 +13,7 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
|||||||
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
|
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
ENV TAG="2024-08-19"
|
ENV TAG="2024-08-30"
|
||||||
|
|
||||||
COPY --chown=${NB_UID}:${NB_GID} binder/README.ipynb "${HOME}"/README.ipynb
|
COPY --chown=${NB_UID}:${NB_GID} binder/README.ipynb "${HOME}"/README.ipynb
|
||||||
|
|
||||||
|
@@ -15,12 +15,12 @@ The following are some common patterns.
|
|||||||
|
|
||||||
### Example 1
|
### Example 1
|
||||||
|
|
||||||
This command pulls the `jupyter/scipy-notebook` image tagged `2024-08-19` from Quay.io if it is not already present on the local host.
|
This command pulls the `jupyter/scipy-notebook` image tagged `2024-08-30` from Quay.io 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.
|
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.
|
The server logs appear in the terminal and include a URL to the server.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it -p 8888:8888 quay.io/jupyter/scipy-notebook:2024-08-19
|
docker run -it -p 8888:8888 quay.io/jupyter/scipy-notebook:2024-08-30
|
||||||
|
|
||||||
# Entered start.sh with args: jupyter lab
|
# 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
|
# list containers
|
||||||
docker ps --all
|
docker ps --all
|
||||||
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||||
# eca4aa01751c quay.io/jupyter/scipy-notebook:2024-08-19 "tini -g -- start-no…" About a minute ago Exited (0) 5 seconds ago silly_panini
|
# eca4aa01751c quay.io/jupyter/scipy-notebook:2024-08-30 "tini -g -- start-no…" About a minute ago Exited (0) 5 seconds ago silly_panini
|
||||||
|
|
||||||
# start the stopped container
|
# start the stopped container
|
||||||
docker start --attach -i eca4aa01751c
|
docker start --attach -i eca4aa01751c
|
||||||
@@ -53,12 +53,12 @@ docker rm eca4aa01751c
|
|||||||
|
|
||||||
### Example 2
|
### Example 2
|
||||||
|
|
||||||
This command pulls the `jupyter/r-notebook` image tagged `2024-08-19` from Quay.io if it is not already present on the local host.
|
This command pulls the `jupyter/r-notebook` image tagged `2024-08-30` from Quay.io 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.
|
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).
|
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
|
```bash
|
||||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work quay.io/jupyter/r-notebook:2024-08-19
|
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work quay.io/jupyter/r-notebook:2024-08-30
|
||||||
```
|
```
|
||||||
|
|
||||||
Pressing `Ctrl-C` twice shuts down the Server and immediately destroys the Docker container.
|
Pressing `Ctrl-C` twice shuts down the Server and immediately destroys the Docker container.
|
||||||
@@ -138,7 +138,7 @@ subuidSize=$(( $(podman info --format "{{ range .Host.IDMappings.UIDMap }}+{{.Si
|
|||||||
subgidSize=$(( $(podman info --format "{{ range .Host.IDMappings.GIDMap }}+{{.Size }}{{end }}" ) - 1 ))
|
subgidSize=$(( $(podman info --format "{{ range .Host.IDMappings.GIDMap }}+{{.Size }}{{end }}" ) - 1 ))
|
||||||
```
|
```
|
||||||
|
|
||||||
This command pulls the `quay.io/jupyter/r-notebook` image tagged `2024-08-19` from Quay.io if it is not already present on the local host.
|
This command pulls the `quay.io/jupyter/r-notebook` image tagged `2024-08-30` from Quay.io 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.
|
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).
|
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).
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ podman run -it --rm -p 10000:8888 \
|
|||||||
-v "${PWD}":/home/jovyan/work --user $uid:$gid \
|
-v "${PWD}":/home/jovyan/work --user $uid:$gid \
|
||||||
--uidmap $uid:0:1 --uidmap 0:1:$uid --uidmap $(($uid+1)):$(($uid+1)):$(($subuidSize-$uid)) \
|
--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)) \
|
--gidmap $gid:0:1 --gidmap 0:1:$gid --gidmap $(($gid+1)):$(($gid+1)):$(($subgidSize-$gid)) \
|
||||||
quay.io/jupyter/r-notebook:2024-08-19
|
quay.io/jupyter/r-notebook:2024-08-30
|
||||||
```
|
```
|
||||||
|
|
||||||
```{warning}
|
```{warning}
|
||||||
|
Reference in New Issue
Block a user