updated docker install script

This commit is contained in:
2024-04-01 19:01:38 -05:00
parent b305db8c52
commit fcb2abbcef

View File

@@ -8,19 +8,10 @@ fi
if [[ ! -f /etc/apt/keyrings/docker.gpg ]]
then
apt-get update
apt-get install -y ca-certificates curl gnupg lsb-release
curl -fsSL https://get.docker.com | sh
mkdir /home/akanealw/docker
chown -R akanealw:akanealw /home/akanealw/docker
mkdir -m 0755 -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
groupadd docker > /dev/null 2>&1
usermod -aG docker akanealw
curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
mv /root/.local/bin/lazydocker /usr/local/bin
adduser akanealw docker
systemctl enable docker.service
systemctl enable containerd.service
systemctl start docker.service