August 2017
Intermediate to advanced
332 pages
9h 16m
English
Let's start with an example and prepare an image with the Git and JDK toolkits. We will use Ubuntu 16.04 as a base image. There is no need to create it; most base images are available in the Docker Hub registry:
$ docker run -i -t ubuntu:16.04 /bin/bash
We've pulled the ubuntu:16.04 image and run it as a container and then called the /bin/bash command in an interactive way (-i flag). You should see the terminal of the container. Since containers are stateful and writable, we can do anything we want in its terminal.
root@dee2cb192c6c:/# apt-get update root@dee2cb192c6c:/# apt-get install -y git
Read now
Unlock full access