You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/using/common.md
+3-8
Original file line number
Diff line number
Diff line change
@@ -225,21 +225,16 @@ docker run -it --rm \
225
225
226
226
### `start.sh`
227
227
228
-
The `start-notebook.py` script inherits most of its option handling capability from a more generic `start.sh` script.
229
-
The `start.sh` script supports all the features described above but allows you to specify an arbitrary command to execute.
228
+
Most of the configuration options in the `start-notebook.py` script are handled by an internal `start.sh` script tha automatically runs before the command provided to the container (it's set as the container entrypoint).
229
+
This allows you to specify an arbitrary command that takes advantage of all these features.
230
230
For example, to run the text-based `ipython` console in a container, do the following:
231
231
232
232
```bash
233
-
docker run -it --rm quay.io/jupyter/base-notebook start.sh ipython
233
+
docker run -it --rm quay.io/jupyter/base-notebook ipython
234
234
```
235
235
236
236
This script is handy when you derive a new Dockerfile from this image and install additional Jupyter applications with subcommands like `jupyter console`, `jupyter kernelgateway`, etc.
237
237
238
-
### Others
239
-
240
-
You can bypass the provided scripts and specify an arbitrary start command.
241
-
If you do, keep in mind that features, supported by the `start.sh` script and its kin, will not function (e.g., `GRANT_SUDO`).
242
-
243
238
## Conda Environments
244
239
245
240
The default Python 3.x [Conda environment](https://conda.io/projects/conda/en/latest/user-guide/concepts/environments.html) resides in `/opt/conda`.
Copy file name to clipboardExpand all lines: docs/using/selecting.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,7 @@ It contains:
34
34
-[mamba](https://github.com/mamba-org/mamba): "reimplementation of the conda package manager in C++". We use this package manager by default when installing packages.
35
35
- Unprivileged user `jovyan` (`uid=1000`, configurable, [see options in the common features section](./common.md) of this documentation) in group `users` (`gid=100`)
36
36
with ownership over the `/home/jovyan` and `/opt/conda` paths
37
-
-`tini` as the container entry point
38
-
- A `start.sh` script as the default command - useful for running alternative commands in the container as applications are added (e.g. `ipython`, `jupyter kernelgateway`, `jupyter lab`)
37
+
-`tini` and a `start.sh` script as the container entry point - useful for running alternative commands in the container as applications are added (e.g. `ipython`, `jupyter kernelgateway`, `jupyter lab`)
39
38
- A `run-hooks.sh` script, which can source/run files in a given directory
40
39
- Options for a passwordless sudo
41
40
- Common system libraries like `bzip2`, `ca-certificates`, `locales`
0 commit comments