That is able to define a Docker container with labels can work Let’s get the list of layers (only one for alpine) docker image inspect -format "" alpine | python -m json.Please note that any tool like Nomad, Terraform, Ansible, etc.
We will not go into all the details now but it’s interesing to see an example of the Go template notation that enables to extract the part of information we need in just a simple command.
docker container run -ti ubuntu bashĪs we’ve done in the previous lab, we will install the figlet package in this container. Let’s start by running an interactive shell in a ubuntu container.
We will then see how to get the details of an image through the inspection and explore the filesystem to have a better understanding of what happens behind the hood.
Then we will focus on the image creation using a Dockerfile. Even if this is not used very often it’s interesting to try it at least once. In this lab we will see how to create an image from a container.