Source: itnext.io

Docker, Kaniko, Buildah

Category: Docker, gitlab

In 2015 Docker and some other leaders in container technologies created the OCI (Open Container Initiative) to define : The commanddocker image build is probably the best known to create a container image. However on top of Docker there are other tools that know how to build an image (how to structure its filesystem and provide the associated metadata) so that it conforms to the image specification.

Additional pieces of context: Let’s now see an example that uses Docker to build an image from the GitLab CI pipeline.

Below is the part of .gitlab-ci.yaml defining this step: In this example, the container image is built within a container based on docker:19-dind,an image in which the docker daemon is installed.

In this short article we illustrated the usage of several tools which know how to build a container image (thus respecting the OCI Image Specification).

Related Articles