August 2017
Intermediate to advanced
332 pages
9h 16m
English
Let's use the example from Chapter 2, Introducing Docker, and build an image with Ubuntu and the Python interpreter installed. In a new directory, we need to create a Dockerfile:
FROM ubuntu:16.04RUN apt-get update && \ apt-get install -y python
Now, we can build the image:
$ docker build -t ubuntu_with_python .
Read now
Unlock full access