The Nautilus DevOps team aims to containerise various applications following a recent meeting with the application development team. They intend to conduct testing with the following steps:
Task: Install docker-ce and docker compose packages on App Server 2.
Login to the server via SSH and determine the OS running:
ssh steve@172.16.238.11
cat /etc/os-release <- Machine is CentOS so yum package manager
Installing Docker:
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Initiate the docker service:
sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl start docker
<- Start Docker - This starts the Docker Service immediately - consider this as service initiation in real time.sudo systemctl enable docker
<- Enable Docker - This enables Docker to start automatically at system boot - Preparing the service to be auto started
Test Installation:
docker --version
docker compose version