DEV Community

Cover image for #DAY 1: Docker & Core Concepts
Samuel Adeduntan
Samuel Adeduntan

Posted on

#DAY 1: Docker & Core Concepts

Building a Solid Understanding of Containers, Images, and the Docker Ecosystem

Objective
The first goal was to set up the lab and use Docker to containerize the main monitoring application in order to guarantee reproducibility and isolation.

Detailed Procedure & Outcomes

The detailed procedure involves outlining each step systematically to ensure clarity and precision. Outcomes are the measurable results or conclusions derived from following the procedure.

  • Preparing the Lab Environment: VMware Workstation was used to provision a fresh Ubuntu Server 22.04 LTS virtual machine. Through Netplan settings, a static IP address (192.168.92.134) was allocated to the virtual machine in order to ensure dependable network accessibility for services.

  • System Preparation and Docker Installation: sudo apt update && sudo apt upgrade -y was used to update the system packages first. For a more efficient setup, the convenience script was used to install the Docker Engine in accordance with the official Docker documentation. To finish the installation, the instructions are sudo sh get-docker.sh, -o get-docker.sh, and curl -fsSL https://get.docker.com were executed.

Screenshot1

Screenshot2

  • Installation Verification: By checking the Docker version, the installation's success was verified. Next, sudo docker run hello-world was used to launch the basic hello-world container. In order to verify that the Docker daemon was functioning properly, this test successfully retrieved the image and launched a container that printed a confirmation message.

Screenshot3

Conclusion & Success Goal Achieved
The goals of Day 1 were effectively achieved. In order to guarantee constant network accessibility, the lab environment was set up with a static IP address and a reliable Ubuntu Server 22.04 LTS virtual machine. The official convenience script was used to install Docker, and version checks and the successful launch of the hello-world container confirmed that it worked as intended.

This attests to the Docker Engine's proper operation and ability to containerize apps in a reproducible, isolated way. A strong foundation has been established, providing a trustworthy starting point for upcoming containerization projects.

Success Goal Achieved:
The main objective of containerizing a test application and setting up the lab environment was accomplished. Now that Docker is up and running, the foundation is prepared for later stages of containerizing the main monitoring application.

Top comments (0)