Skip to content

Commit 5e75258

Browse files
authored
Document base image
1 parent 2b17eca commit 5e75258

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docs/source/howto/base_image.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Change the base image used by Docker
2+
3+
You may change the base image used in the `Dockerfile` that creates images by repo2docker.
4+
This is equivalent to changing the `FROM <base_image>` in the Dockerfile.
5+
6+
To do so, use the `base_image` traitlet when invoking `repo2docker`.
7+
Note that this is not configurable by individual repositories, it is configured when you invoke the `repo2docker` command.
8+
9+
```{note}
10+
By default repo2docker builds on top of the `buildpack-deps:bionic` base image, an Ubuntu-based image.
11+
```
12+
13+
## Requirements for your base image
14+
15+
`repo2docker` will only work if a specific set of packages exists in the base image.
16+
Only images that match the following criteria are supported:
17+
18+
- Ubuntu based distributions (minimum `18.04`)
19+
- Contains a set of base packages installed with [the `buildpack-deps` image family](https://hub.docker.com/_/buildpack-deps).
20+
21+
Other images *may* work, but are not officially supported.

docs/source/howto/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ Select from the pages listed below to get started.
1515
lab_workspaces
1616
jupyterhub_images
1717
deploy
18+
base_image

0 commit comments

Comments
 (0)