Docker

This section explains how to install Docker on a ec2-instance

What is Docker ??

Docker is a popular open-source platform that allows developers to create, package, and deploy applications in containers. Containers are lightweight, portable, and self-contained environments that include everything needed to run an application, such as code, dependencies, and libraries.

Installing Docker

sudo yum install -y docker

Start the Docker daemon and enable it to start on boot

sudo systemctl start docker
sudo systemctl enable docker

Add the jenkins user to the docker group

sudo usermod -aG docker jenkins

Images in Docker Hub

  • Every successful run of the pipeline pushes a docker image to the DockerHub with the tag as the BUILD_NUMBER

  • You should images in you dokcerhub pushed. Something like below

Drawing

Last updated