From 6d46e36f46c6a99516d0076c9ae707499ebce685 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 8 Jan 2022 14:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/020-docker.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install/020-docker.sh b/install/020-docker.sh index 5489c71..e4baf14 100755 --- a/install/020-docker.sh +++ b/install/020-docker.sh @@ -1,21 +1,24 @@ #!/bin/bash -. "../src/01-common.sh" || exit 5 -title "Installing docker..." +echo +echo "===============================================" +echo "Installing docker..." +echo "===============================================" +echo # 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 -# apti docker-ce docker-compose +# sudo apt install -y --autoremove docker-ce docker-compose 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 -apti docker-ce docker-ce-cli containerd.io +sudo apt install -y --autoremove docker-ce docker-ce-cli containerd.io sudo usermod -aG docker anthony -success "You need to logout and log in again to apply docker group" +echo "You need to logout and log in again to apply docker group"