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)