DEV Community

Cover image for 1.Install Docker Packages and Start Docker Service
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

1.Install Docker Packages and Start Docker Service

Lab Information

The Nautilus DevOps team aims to containerize various applications following a recent meeting with the application development team. They intend to conduct testing with the following steps:

Install docker-ce and docker compose packages on App Server 3.

Initiate the docker service.
Enter fullscreen mode Exit fullscreen mode

Lab Solutions

βœ… Part 1: Exact KodeKloud Lab Guidelines (Exam-Safe Mode)
πŸ”‘ Step 0: Login to App Server 3

# From the jump host:
ssh banner@stapp03

#Password:
BigGr33n
Enter fullscreen mode Exit fullscreen mode

πŸ”§ Step 1: Install Docker CE and Docker Compose (RHEL/CentOS)

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-compose-plugin
Enter fullscreen mode Exit fullscreen mode

▢️ Step 2: Start Docker service

sudo systemctl start docker
Enter fullscreen mode Exit fullscreen mode

πŸ” Step 3: Verification (MANDATORY)

systemctl status docker

docker --version

docker compose version
Enter fullscreen mode Exit fullscreen mode

🧠 Part 2: Beginner-Friendly Explanation
πŸͺœ Why these steps?

Jump host is only a gateway

You must SSH into stapp03 to do real work.

Docker isn’t in default repos

We add Docker’s official repo so the system can find docker-ce.

Compose is now a plugin

docker-compose-plugin gives you:

docker compose

(⚠️ not docker-compose)

Docker must be started

Installed β‰  running

Labs often fail if you forget this step.

🧠 Exam Memory Hook

Right server β†’ Install β†’ Start β†’ Verify


Resources & Next Steps
πŸ“¦ Full Code Repository: KodeKloud Learning Labs
πŸ“– More Deep Dives: Whispering Cloud Insights - Read other technical articles
πŸ’¬ Join Discussion: DEV Community - Share your thoughts and questions
πŸ’Ό Let's Connect: LinkedIn - I'd love to connect with you

Credits
β€’ All labs are from: KodeKloud
β€’ I sincerely appreciate your provision of these valuable resources.

Top comments (0)