Skip to content

Commit eb50246

Browse files
authored
Merge pull request docker#13016 from alenzen/patch
improve documentation
2 parents 1b0fcad + 1ef73b3 commit eb50246

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

develop/develop-images/baseimages.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ use to build Ubuntu images.
3434

3535
It can be as simple as this to create an Ubuntu parent image:
3636

37-
$ sudo debootstrap xenial xenial > /dev/null
38-
$ sudo tar -C xenial -c . | docker import - xenial
37+
$ sudo debootstrap focal focal > /dev/null
38+
$ sudo tar -C focal -c . | docker import - focal
3939

40-
a29c15f1bf7a
40+
sha256:81ec9a55a92a5618161f68ae691d092bf14d700129093158297b3d01593f4ee3
4141

42-
$ docker run xenial cat /etc/lsb-release
42+
$ docker run focal cat /etc/lsb-release
4343

4444
DISTRIB_ID=Ubuntu
45-
DISTRIB_RELEASE=16.04
46-
DISTRIB_CODENAME=xenial
47-
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
45+
DISTRIB_RELEASE=20.04
46+
DISTRIB_CODENAME=focal
47+
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"
4848

4949
There are more example scripts for creating parent images in [the Docker
5050
GitHub repository](https://github.com/docker/docker/blob/master/contrib).
@@ -86,11 +86,11 @@ current directory.
8686
> You can use a Docker container to build it:
8787
>
8888
> ```bash
89-
> $ docker run --rm -it -v $PWD:/build ubuntu:16.04
89+
> $ docker run --rm -it -v $PWD:/build ubuntu:20.04
9090
>
9191
> container# apt-get update && apt-get install build-essential
9292
> container# cd /build
93-
> container# gcc -o hello -static -nostartfiles hello.c
93+
> container# gcc -o hello -static hello.c
9494
> ```
9595
9696
To run your new image, use the `docker run` command:

0 commit comments

Comments
 (0)