mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 02:24:04 +00:00
Update tags in documentation
This commit is contained in:
@@ -26,11 +26,11 @@ The [User Guide on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/
|
|||||||
|
|
||||||
**Example 1:**
|
**Example 1:**
|
||||||
|
|
||||||
This command pulls the `jupyter/scipy-notebook` image tagged `b418b67c225b` from Docker Hub if it is not already present on the local host.
|
This command pulls the `jupyter/scipy-notebook` image tagged `6b49f3337709` from Docker Hub if it is not already present on the local host.
|
||||||
It then starts a container running a Jupyter Server and exposes the container's internal port `8888` to port `10000` of the host machine:
|
It then starts a container running a Jupyter Server and exposes the container's internal port `8888` to port `10000` of the host machine:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -p 10000:8888 jupyter/scipy-notebook:b418b67c225b
|
docker run -p 10000:8888 jupyter/scipy-notebook:6b49f3337709
|
||||||
```
|
```
|
||||||
|
|
||||||
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`.
|
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 Jupyter Server exits.
|
|||||||
|
|
||||||
**Example 2:**
|
**Example 2:**
|
||||||
|
|
||||||
This command pulls the `jupyter/datascience-notebook` image tagged `b418b67c225b` from Docker Hub if it is not already present on the local host.
|
This command pulls the `jupyter/datascience-notebook` image tagged `6b49f3337709` from Docker Hub if it is not already present on the local host.
|
||||||
It then starts an _ephemeral_ container running a Jupyter Server and exposes the server on host port 10000.
|
It then starts an _ephemeral_ container running a Jupyter Server and exposes the server on host port 10000.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook:b418b67c225b
|
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook:6b49f3337709
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# https://hub.docker.com/r/jupyter/base-notebook/tags
|
# https://hub.docker.com/r/jupyter/base-notebook/tags
|
||||||
ARG OWNER=jupyter
|
ARG OWNER=jupyter
|
||||||
ARG BASE_CONTAINER=$OWNER/base-notebook:b418b67c225b
|
ARG BASE_CONTAINER=$OWNER/base-notebook:6b49f3337709
|
||||||
FROM $BASE_CONTAINER
|
FROM $BASE_CONTAINER
|
||||||
|
|
||||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||||
@@ -12,7 +12,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="b418b67c225b"
|
ENV TAG="6b49f3337709"
|
||||||
|
|
||||||
WORKDIR "${HOME}"
|
WORKDIR "${HOME}"
|
||||||
COPY binder/README.ipynb .
|
COPY binder/README.ipynb .
|
||||||
|
@@ -29,7 +29,7 @@ Create a new Dockerfile like the one shown below.
|
|||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
# Start from a core stack version
|
# Start from a core stack version
|
||||||
FROM jupyter/datascience-notebook:b418b67c225b
|
FROM jupyter/datascience-notebook:6b49f3337709
|
||||||
# Install in the default python3 environment
|
# Install in the default python3 environment
|
||||||
RUN pip install --quiet --no-cache-dir 'flake8==3.9.2' && \
|
RUN pip install --quiet --no-cache-dir 'flake8==3.9.2' && \
|
||||||
fix-permissions "${CONDA_DIR}" && \
|
fix-permissions "${CONDA_DIR}" && \
|
||||||
@@ -48,7 +48,7 @@ Next, create a new Dockerfile like the one shown below.
|
|||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
# Start from a core stack version
|
# Start from a core stack version
|
||||||
FROM jupyter/datascience-notebook:b418b67c225b
|
FROM jupyter/datascience-notebook:6b49f3337709
|
||||||
# Install from requirements.txt file
|
# Install from requirements.txt file
|
||||||
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
|
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
|
||||||
RUN pip install --quiet --no-cache-dir --requirement /tmp/requirements.txt && \
|
RUN pip install --quiet --no-cache-dir --requirement /tmp/requirements.txt && \
|
||||||
@@ -60,7 +60,7 @@ For conda, the Dockerfile is similar:
|
|||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
# Start from a core stack version
|
# Start from a core stack version
|
||||||
FROM jupyter/datascience-notebook:b418b67c225b
|
FROM jupyter/datascience-notebook:6b49f3337709
|
||||||
# Install from requirements.txt file
|
# Install from requirements.txt file
|
||||||
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
|
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
|
||||||
RUN mamba install --yes --file /tmp/requirements.txt && \
|
RUN mamba install --yes --file /tmp/requirements.txt && \
|
||||||
@@ -282,7 +282,7 @@ To use a specific version of JupyterHub, the version of `jupyterhub` in your ima
|
|||||||
version in the Hub itself.
|
version in the Hub itself.
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM jupyter/base-notebook:b418b67c225b
|
FROM jupyter/base-notebook:6b49f3337709
|
||||||
RUN pip install --quiet --no-cache-dir jupyterhub==1.4.1 && \
|
RUN pip install --quiet --no-cache-dir jupyterhub==1.4.1 && \
|
||||||
fix-permissions "${CONDA_DIR}" && \
|
fix-permissions "${CONDA_DIR}" && \
|
||||||
fix-permissions "/home/${NB_USER}"
|
fix-permissions "/home/${NB_USER}"
|
||||||
@@ -473,7 +473,7 @@ For JupyterLab:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
jupyter/base-notebook:b418b67c225b \
|
jupyter/base-notebook:6b49f3337709 \
|
||||||
start.sh jupyter lab --LabApp.token=''
|
start.sh jupyter lab --LabApp.token=''
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -481,7 +481,7 @@ For jupyter classic:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
jupyter/base-notebook:b418b67c225b \
|
jupyter/base-notebook:6b49f3337709 \
|
||||||
start.sh jupyter notebook --NotebookApp.token=''
|
start.sh jupyter notebook --NotebookApp.token=''
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -15,12 +15,12 @@ The following are some common patterns.
|
|||||||
|
|
||||||
**Example 1:**
|
**Example 1:**
|
||||||
|
|
||||||
This command pulls the `jupyter/scipy-notebook` image tagged `b418b67c225b` from Docker Hub if it is not already present on the local host.
|
This command pulls the `jupyter/scipy-notebook` image tagged `6b49f3337709` from Docker Hub if it is not already present on the local host.
|
||||||
It then starts a container running a Jupyter Notebook server and exposes the server on host port 8888.
|
It then starts a container running a Jupyter Notebook server and exposes the server on host port 8888.
|
||||||
The server logs appear in the terminal and include a URL to the notebook server.
|
The server logs appear in the terminal and include a URL to the notebook server.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it -p 8888:8888 jupyter/scipy-notebook:b418b67c225b
|
docker run -it -p 8888:8888 jupyter/scipy-notebook:6b49f3337709
|
||||||
|
|
||||||
# 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 notebook server but leaves the container
|
|||||||
# list containers
|
# list containers
|
||||||
docker ps -a
|
docker ps -a
|
||||||
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||||
# 221331c047c4 jupyter/scipy-notebook:b418b67c225b "tini -g -- start-no…" 11 seconds ago Exited (0) 8 seconds ago cranky_benz
|
# 221331c047c4 jupyter/scipy-notebook:6b49f3337709 "tini -g -- start-no…" 11 seconds ago Exited (0) 8 seconds ago cranky_benz
|
||||||
|
|
||||||
# start the stopped container
|
# start the stopped container
|
||||||
docker start -a 221331c047c4
|
docker start -a 221331c047c4
|
||||||
@@ -53,12 +53,12 @@ docker rm 221331c047c4
|
|||||||
|
|
||||||
**Example 2:**
|
**Example 2:**
|
||||||
|
|
||||||
This command pulls the `jupyter/r-notebook` image tagged `b418b67c225b` from Docker Hub if it is not already present on the local host.
|
This command pulls the `jupyter/r-notebook` image tagged `6b49f3337709` from Docker Hub if it is not already present on the local host.
|
||||||
It then starts a container running a Jupyter Notebook server and exposes the server on host port 10000.
|
It then starts a container running a Jupyter Notebook server and exposes the server on host port 10000.
|
||||||
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).
|
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).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/r-notebook:b418b67c225b
|
docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/r-notebook:6b49f3337709
|
||||||
```
|
```
|
||||||
|
|
||||||
Pressing `Ctrl-C` twice shuts down the notebook server and immediately destroys the Docker container.
|
Pressing `Ctrl-C` twice shuts down the notebook server and immediately destroys the Docker container.
|
||||||
|
@@ -42,7 +42,7 @@ You can customize the docker-stack notebook image to deploy by modifying the `no
|
|||||||
For example, you can build and deploy a `jupyter/all-spark-notebook` by modifying the Dockerfile like so:
|
For example, you can build and deploy a `jupyter/all-spark-notebook` by modifying the Dockerfile like so:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM jupyter/all-spark-notebook:b418b67c225b
|
FROM jupyter/all-spark-notebook:6b49f3337709
|
||||||
# Your RUN commands and so on
|
# Your RUN commands and so on
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
# Pick your favorite docker-stacks image
|
# Pick your favorite docker-stacks image
|
||||||
FROM jupyter/minimal-notebook:b418b67c225b
|
FROM jupyter/minimal-notebook:6b49f3337709
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
# Pick your favorite docker-stacks image
|
# Pick your favorite docker-stacks image
|
||||||
FROM jupyter/minimal-notebook:b418b67c225b
|
FROM jupyter/minimal-notebook:6b49f3337709
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user