February 2018
Intermediate to advanced
200 pages
5h 51m
English
In step 1, we downloaded a Docker image from Docker Hub by setting the parameter name as provider and the image version. Here, we downloaded an Ubuntu image from Docker Hub.
In step 2, we created a very basic project that allows us to build our own Docker image. The project directory contained a Dockerfile, where we defined statements to configure our image.
We used the base image ubuntu:latest, and once the container has been created it will execute sleep infinity upon startup.
In step 3, we used the Ansible module docker_image to build a Docker image using Dockerfile from our basic Docker project. We can verify this image using docker image -a.
Read now
Unlock full access