Skip to content

Commit

Permalink
Fix redirect docker docs links
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Aug 19, 2024
1 parent 4d4ed0e commit 5fbcb0d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ It then starts a container running a Jupyter Server with the JupyterLab frontend
docker run -p 10000:8888 quay.io/jupyter/scipy-notebook:2024-05-27
```

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/#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`.

Visiting `http://<hostname>:10000/?token=<token>` in a browser loads JupyterLab,
where:
Expand Down
4 changes: 2 additions & 2 deletions docs/using/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ You do so by passing arguments to the `docker run` command.
This feature is useful when mounting host volumes with specific owner permissions.
You **must** run the container with `--user root` for this option to take effect.
(The startup script will `su ${NB_USER}` after adjusting the user ID.)
Instead, you might consider using the modern Docker-native options [`--user`](https://docs.docker.com/engine/reference/run/#user) and
[`--group-add`](https://docs.docker.com/engine/reference/run/#additional-groups) - see the last bullet in this section for more details.
Instead, you might consider using the modern Docker-native options [`--user`](https://docs.docker.com/engine/containers/run/#user) and
[`--group-add`](https://docs.docker.com/engine/containers/run/#additional-groups) - see the last bullet in this section for more details.
See bullet points regarding `--user` and `--group-add`.

- `-e NB_GID=<numeric gid>` - Instructs the startup script to change the primary group of `${NB_USER}` to `${NB_GID}`
Expand Down
4 changes: 2 additions & 2 deletions docs/using/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ There are 2 types of data, which you might want to persist.

2. If you want to persist user data (files created by you, like `Python` scripts, notebooks, text files, and so on),
then you should use a
[Docker bind mount](https://docs.docker.com/storage/bind-mounts/) or
[Docker Volume](https://docs.docker.com/storage/volumes/).
[Docker bind mount](https://docs.docker.com/engine/storage/bind-mounts/) or
[Docker Volume](https://docs.docker.com/engine/storage/volumes/).
You can find [an example of using a bind mount here](./running.md#example-2).
There is also [a mount troubleshooting section](./troubleshooting.md#permission-denied-when-mounting-volumes) if you experience any issues.

Expand Down
2 changes: 1 addition & 1 deletion docs/using/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This section provides details about the second.

## Using the Docker CLI

You can launch a local Docker container from the Jupyter Docker Stacks using the [Docker command-line interface](https://docs.docker.com/engine/reference/commandline/cli/).
You can launch a local Docker container from the Jupyter Docker Stacks using the [Docker command-line interface](https://docs.docker.com/reference/cli/docker/).
There are numerous ways to configure containers using CLI.
The following are some common patterns.

Expand Down
4 changes: 2 additions & 2 deletions docs/using/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The following sections cover a few of these scenarios and how to fix them.
- If you are mounting your volume inside the `/home/` directory, you can use the `-e CHOWN_HOME=yes` and `CHOWN_HOME_OPTS="-R"` flags
instead of the `-e CHOWN_EXTRA` and `-e CHOWN_EXTRA_OPTS` in the example above.
- This solution should work in most cases where you have created a docker volume
(i.e. using the [`docker volume create --name <my-volume>`command](https://docs.docker.com/storage/volumes/#create-and-manage-volumes)) and mounted it using the `-v` flag in `docker run`.
(i.e. using the [`docker volume create --name <my-volume>`command](https://docs.docker.com/engine/storage/volumes/#create-and-manage-volumes)) and mounted it using the `-v` flag in `docker run`.
```

2. **Matching the container's UID/GID with the host's**
Expand Down Expand Up @@ -229,7 +229,7 @@ If you have also **created a new user**, you might be experiencing any of the fo
to modify the files in the default `/home` and `/opt/conda` directories.
Further avoiding issues when trying to `conda install` additional packages.

- Use `docker inspect <container_id>` and look for the [`Mounts` section](https://docs.docker.com/storage/volumes/#start-a-container-with-a-volume)
- Use `docker inspect <container_id>` and look for the [`Mounts` section](https://docs.docker.com/engine/storage/volumes/#start-a-container-with-a-volume)
to verify that the volume was created and mounted accordingly:

```json
Expand Down

0 comments on commit 5fbcb0d

Please sign in to comment.