File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ use to build Ubuntu images.
3434
3535It 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
4949There are more example scripts for creating parent images in [ the Docker
5050GitHub 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
9696To run your new image, use the ` docker run` command:
You can’t perform that action at this time.
0 commit comments