mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 11:02:57 +00:00
✏️ Make " consistent
This commit is contained in:
@@ -93,7 +93,7 @@ The following sections cover a few of these scenarios and how to fix them.
|
|||||||
-p 8888:8888 \
|
-p 8888:8888 \
|
||||||
-e NB_UID=1234 \
|
-e NB_UID=1234 \
|
||||||
-e NB_GID=5678 \
|
-e NB_GID=5678 \
|
||||||
-v '$(PWD)'/test:/home/jovyan/work \
|
-v "$(PWD)"/test:/home/jovyan/work \
|
||||||
jupyter/minimal-notebook:latest
|
jupyter/minimal-notebook:latest
|
||||||
|
|
||||||
# you should see an output similar to this
|
# you should see an output similar to this
|
||||||
@@ -141,18 +141,17 @@ If you have also **created a new user**, you might be experiencing any of the fo
|
|||||||
-e CHOWN_HOME=yes \
|
-e CHOWN_HOME=yes \
|
||||||
-e CHOWN_HOME_OPTS="-R" \
|
-e CHOWN_HOME_OPTS="-R" \
|
||||||
-w "/home/${NB_USER}" \
|
-w "/home/${NB_USER}" \
|
||||||
-v' $(PWD)'/test:/home/callisto/work \
|
-v "$(PWD)"/test:/home/callisto/work \
|
||||||
jupyter/minimal-notebook
|
jupyter/minimal-notebook
|
||||||
|
|
||||||
# expected output
|
# Updated the jovyan user:
|
||||||
Updated the jovyan user:
|
# - username: jovyan -> callisto
|
||||||
- username: jovyan -> callisto
|
# - home dir: /home/jovyan -> /home/callisto
|
||||||
- home dir: /home/jovyan -> /home/callisto
|
# Update callisto UID:GID to 1234:1234
|
||||||
Update callisto UID:GID to 1234:1234
|
# Attempting to copy /home/jovyan to /home/callisto...
|
||||||
Attempting to copy /home/jovyan to /home/callisto...
|
# Success!
|
||||||
Success!
|
# Ensuring /home/callisto is owned by 1234:1234
|
||||||
Ensuring /home/callisto is owned by 1234:1234
|
# Running as callisto: bash
|
||||||
Running as callisto: bash
|
|
||||||
```
|
```
|
||||||
|
|
||||||
where:
|
where:
|
||||||
@@ -185,7 +184,7 @@ If you have also **created a new user**, you might be experiencing any of the fo
|
|||||||
-e CHOWN_HOME=yes \
|
-e CHOWN_HOME=yes \
|
||||||
-e CHOWN_HOME_OPTS="-R" \
|
-e CHOWN_HOME_OPTS="-R" \
|
||||||
-w "/home/${NB_USER}" \
|
-w "/home/${NB_USER}" \
|
||||||
-v $(PWD)/test:/home/callisto/work \
|
-v "$(PWD)"/test:/home/callisto/work \
|
||||||
jupyter/minimal-notebook
|
jupyter/minimal-notebook
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -198,7 +197,7 @@ If you have also **created a new user**, you might be experiencing any of the fo
|
|||||||
- Pass absolute paths to the `-v` flag:
|
- Pass absolute paths to the `-v` flag:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
-v '$(PWD)'/<my-vol>:/home/jovyan/work
|
-v "$(PWD)"/<my-vol>:/home/jovyan/work
|
||||||
```
|
```
|
||||||
|
|
||||||
This example uses the syntax `$(PWD)`, which is replaced with the full path to the current directory at runtime. The destination
|
This example uses the syntax `$(PWD)`, which is replaced with the full path to the current directory at runtime. The destination
|
||||||
|
Reference in New Issue
Block a user