https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-10
#!/bin/bash
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce docker-compose
sudo systemctl status docker
sudo usermod -aG docker ${USER}
su - ${USER}
id -nG
# Add a user to the group if you need it
#sudo usermod -aG docker username
docker
#Notes:
#Start docker-compose as sudo
#!/bin/bash
sudo pacman -Syu docker docker-compose
sudo systemctl enable docker
sudo systemctl restart
sudo systemctl enable docker-compose
sudo systemctl restart
sudo usermod -aG docker ${USER}
su - ${USER}
id -nG
https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL \
https://download.docker.com/linux/ubuntu/gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 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
# Install docker engine
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# list versions available in added repo
#apt-cache madison docker-ce
# add version string
#sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
sudo systemctl status docker
# Add docker to sudo group so you dont have to type sudo everytime you run docker.
sudo usermod -aG docker ${USER}
su - ${USER}
id -nG
sudo docker run hello-world
sudo apt update
sudo apt install apt-transport-https ca-certificates curl 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 bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker
# Add docker to sudo group so you dont have to type sudo everytime you run docker.
sudo usermod -aG docker ${USER}
su - ${USER}
id -nG
sudo yum check-update
curl -fsSL https://get.docker.com/ | sh
sudo systemctl start docker
# Verify docker is running.
sudo systemctl status docker
sudo systemctl enable docker
# Add docker to sudo group.
sudo usermod -aG docker $(whoami)