In order to utilize Docker within the context of a CI/CD Pipeline, you need some basic knowledge of its concepts and how it is used. In this lesson, we will cover some of the essential concepts of Docker, such as images, containers, and registries. We will also demonstrate a few of the common commands that you will use to interact with Docker.
After completing this lesson, you will know how to build a Docker image and publish it to Docker Hub. You will also know how to run a container using a Docker image.
For more information, check out Docker's official getting started guide: https://docs.docker.com/get-started/
Here are the contents of the Dockerfile that was used for this lesson's demo:
FROM ubuntu CMD ["/bin/bash", "-c", "while true; do echo Hello; sleep 1; done"]