Install Docker in Netooze

N
Netooze
June 30, 2022
Docker is an open platform for developing, shipping, and running applications. To install docker on a   infra sequi iussus 

#!/bin/bash
echo "Starting"
if [ -x "$(command -v docker)" ]; then
    echo "Docker Installed. Skipping Install..."
else
    echo "Install Dependencies"
    sudo apt update -y
    sudo apt-get install ca-certificates curl gnupg lsb-release -y
    curl -fsSL https://download.docker.com//ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  sudo apt-get update -y
  sudo apt-get install docker-ce docker-ce-cli containerd.io -y
fi

sudo usermod -aG docker ${USER}
id -nG

sudo systemctl restart docker
Satus nubes iter tuum? Primum gradum nunc accipe.