2021-12-22 13:51:22 +00:00
|
|
|
#!/bin/bash
|
2022-07-04 09:56:45 +00:00
|
|
|
##makedesc: Install docker (latest) + docker-compose (latest) + ppa
|
|
|
|
|
2022-01-08 06:18:41 +00:00
|
|
|
echo
|
|
|
|
echo "==============================================="
|
2022-07-04 09:56:45 +00:00
|
|
|
echo "Installing docker (latest)..."
|
2022-01-08 06:18:41 +00:00
|
|
|
echo "==============================================="
|
|
|
|
echo
|
2021-12-22 13:51:22 +00:00
|
|
|
|
|
|
|
# https://docs.docker.com/engine/install/ubuntu/
|
|
|
|
|
|
|
|
# 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 focal stable"
|
|
|
|
# sudo apt update
|
2022-01-08 06:18:41 +00:00
|
|
|
# sudo apt install -y --autoremove docker-ce docker-compose
|
2021-12-22 13:51:22 +00:00
|
|
|
|
|
|
|
curl -fsSL https://download.docker.com/linux/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 update
|
2022-01-08 06:18:41 +00:00
|
|
|
sudo apt install -y --autoremove docker-ce docker-ce-cli containerd.io
|
2021-12-22 13:51:22 +00:00
|
|
|
|
|
|
|
sudo usermod -aG docker anthony
|
|
|
|
|
2022-01-08 06:18:41 +00:00
|
|
|
echo "You need to logout and log in again to apply docker group"
|