100-Days-Of-DevOps-Challenge-KodeKloud

Setup Docker Installation

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:

Steps

  1. Login into App server 2 and find out the linux distros

     cat /etc/os-release
     uname -a
    
     [steve@stapp02 ~]$ cat /etc/os-release 
     NAME="CentOS Stream"
     VERSION="9"
     ID="centos"
     ID_LIKE="rhel fedora"
     VERSION_ID="9"
     PLATFORM_ID="platform:el9"
     PRETTY_NAME="CentOS Stream 9"
     ANSI_COLOR="0;31"
     LOGO="fedora-logo-icon"
     CPE_NAME="cpe:/o:centos:centos:9"
     HOME_URL="https://centos.org/"
     BUG_REPORT_URL="https://issues.redhat.com/"
     REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
     REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
    

    We can see it’s CentOS 9 os To install Docker on CentOS, follow the official docs

  2. Available Methods

    You can install docker in many ways, like using RPM repository, downloading the docker package, or using a bash script. I would recommended to install using rpm repository, or using one script solution.

  3. Install Using BASH Script

     curl -fsSL https://get.docker.com -o get-docker.sh
     sudo sh get-docker.sh
    
  4. Enable Docker Service

     sudo systemctl enable docker.service
     sudo systemctl start docker.service
    

Good to Know?

Docker Fundamentals

Docker Architecture

Installation Methods

Key Benefits