Docker Administration Series - Installation

Docker Administration Series - Installation

ยท

2 min read

Table of contents

H๐ž๐ซ๐ž ๐ˆ ๐š๐ฆ ๐ฉ๐จ๐ฌ๐ญ๐ข๐ง๐  ๐ญ๐ก๐ž ๐ง๐ž๐ฐ ๐œ๐ฅ๐š๐ฌ๐ฌ ๐จ๐Ÿ ๐ƒ๐จ๐œ๐ค๐ž๐ซ...๐Ÿ˜ƒ๐Ÿ˜ƒ

๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐ˆ๐ง๐ฌ๐ญ๐š๐ฅ๐ฅ๐š๐ญ๐ข๐จ๐ง!!

๐Ÿ“Œ I have an AWS Cloud Account, where I am going to install below two OS..๐Ÿ‘‡ ๐Ÿ“Œ Installation in two OS -- ๐”๐๐”๐๐“๐” and ๐‚๐„๐๐“๐Ž๐’ ๐Ÿ“Œ Docker Installation in UBUNTU..

๐ฉ๐ซ๐ž-๐ซ๐ž๐ช๐ฎ๐ข๐ฌ๐ข๐ญ๐ข๐ž๐ฌ - ๐›๐ž๐Ÿ๐จ๐ซ๐ž ๐š๐œ๐ญ๐ฎ๐š๐ฅ ๐ญ๐ก๐ž ๐ƒ๐จ๐œ๐ค๐ž๐ซ Software Installation

       sudo apt-get update
       sudo apt-get install \
       apt-transport-https \
       ca-certificates \
       curl \
       gnupg-agent \
       software-properties-common

๐€๐๐๐ข๐ง๐  ๐ญ๐ก๐ž ๐ฉ๐š๐œ๐ค๐š๐ ๐ž ๐ค๐ž๐ฒ..

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

๐๐จ๐ฐ ๐š๐๐๐ข๐ง๐  ๐ญ๐ก๐ž ๐ฉ๐š๐ญ๐ก ๐ฐ๐ก๐ž๐ซ๐ž ๐ญ๐ก๐ž ๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐ฌ๐จ๐Ÿ๐ญ๐ฐ๐š๐ซ๐ž ๐ฐ๐ข๐ฅ๐ฅ ๐›๐ž ๐ข๐ง๐ฌ๐ญ๐š๐ฅ๐ฅ..

  sudo add-apt-repository \
          "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
          $(lsb_release -cs) \
          stable"

๐€๐Ÿ๐ญ๐ž๐ซ ๐š๐๐๐ข๐ง๐  ๐ ๐ž๐ญ ๐ซ๐ž๐Ÿ๐ซ๐ž๐ฌ๐ก ๐ญ๐ก๐ž ๐Œ๐š๐œ๐ก๐ข๐ง๐ž..

sudo apt-get update

๐ข๐ง๐ฌta๐ฅ๐ฅ ๐ƒ๐จ๐œ๐ค๐ž๐ซ-๐œ๐ž(๐œ๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐ญ๐ฒ ๐ž๐๐ข๐ญ๐ข๐จ๐ง)

sudo apt-get install docker-ce docker-ce-cli containerd.io

start and enable Docker service

sudo systemctl start docker
sudo systemctl enable docker

๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐ˆ๐ง๐ฌ๐ญ๐š๐ฅ๐ฅ๐š๐ญ๐ข๐จ๐ง ๐ข๐ง ๐‚๐„๐๐“๐Ž๐’..

P๐ซ๐ž-๐ซ๐ž๐ช๐ฎ๐ข๐ฌ๐ข๐ญ๐ข๐ž๐ฌ ๐ฉ๐š๐œ๐ค๐š๐ ๐ž๐ฌ ๐›๐ž๐Ÿ๐จ๐ซ๐ž ๐š๐œ๐ญ๐ฎ๐š๐ฅ ๐ญ๐ก๐ž ๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐ฉ๐š๐œ๐ค๐š๐ ๐ž๐ฌ..

sudo yum install -y yum-utils \
        device-mapper-persistent-data \
        lvm2

Add๐ข๐ง๐  ๐ญ๐ก๐ž ๐ฉ๐š๐ญ๐ก ๐ฐ๐ก๐ž๐ซ๐ž ๐ญ๐ก๐ž ๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐ฌ๐จ๐Ÿ๐ญ๐ฐ๐š๐ซ๐ž ๐ฐ๐ข๐ฅ๐ฅ ๐›๐ž ๐ข๐ง๐ฌ๐ญ๐š๐ฅ๐ฅ..

sudo yum-config-manager \
        --add-repo \
        https://download.docker.com/linux/centos/docker-ce.repo

๐€๐Ÿ๐ญ๐ž๐ซ ๐š๐๐๐ข๐ง๐  ๐ ๐ž๐ญ ๐ซ๐ž๐Ÿ๐ซ๐ž๐ฌ๐ก ๐ญ๐ก๐ž ๐Œ๐š๐œ๐ก๐ข๐ง๐ž..

sudo yum update

๐ข๐ง๐ฌ๐š๐ญ๐ฅ๐ฅ ๐ƒ๐จ๐œ๐ค๐ž๐ซ-๐œ๐ž(๐œ๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐ญ๐ฒ ๐ž๐๐ข๐ญ๐ข๐จ๐ง)

sudo yum install docker-ce docker-ce-cli containerd.io

๐€๐Ÿ๐ญ๐ž๐ซ ๐ญ๐ก๐ž ๐ฉ๐š๐œ๐ค๐š๐ ๐ž ๐ข๐ง๐ฌ๐š๐ญ๐ฅ๐ฅ..๐ซ๐ฎ๐ง ๐ญ๐ก๐ž ๐›๐ž๐ฅ๐จ๐ฐ ๐œ๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ..

sudo systemctl start docker
sudo systemctl enable docker

Community and Social Footprints :

Did you find this article valuable?

Support Cloudnloud Tech Community by becoming a sponsor. Any amount is appreciated!

ย