August 2017
Intermediate to advanced
332 pages
9h 16m
English
Creating each Docker image manually with the commit command could be laborious, especially in the case of build automation and the Continuous Delivery process. Luckily, there is a built-in language to specify all the instructions that should be executed to build the Docker image.
Let's start with an example similar to the one with Git and JDK. This time, we will prepare the ubuntu_with_python image.
FROM ubuntu:16.04 RUN apt-get update && \ apt-get install -y python
$ docker build -t ubuntu_with_python .
$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE ...
Read now
Unlock full access