Utils
This commit is contained in:
@@ -17,10 +17,14 @@ function install() {
|
||||
|
||||
cd
|
||||
if ! docker --version; then
|
||||
echo -e "${C_LGn}Docker installation...${RES}"
|
||||
|
||||
echo "upgrade system .."
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
echo "install components"
|
||||
sudo apt install curl apt-transport-https ca-certificates gnupg lsb-release -y
|
||||
|
||||
echo -e "${C_LGn}Docker installation...${RES}"
|
||||
. /etc/*-release
|
||||
wget -qO- "https://download.docker.com/linux/${DISTRIB_ID,,}/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/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user