From 39ce95977a86f3eff15dab48663a0106f44cda16 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 22 Dec 2024 12:06:42 +0100 Subject: [PATCH] Make sure docker group is made and user is added to the docker group --- tools/modules/software/install_docker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/modules/software/install_docker.sh b/tools/modules/software/install_docker.sh index dc9a8107d..7d00bb87d 100644 --- a/tools/modules/software/install_docker.sh +++ b/tools/modules/software/install_docker.sh @@ -29,6 +29,8 @@ install_docker() { else pkg_install docker-ce docker-ce-cli containerd.io fi + groupadd docker 2>/dev/null || true + usermod -aG docker $SUDO_USER systemctl enable docker.service > /dev/null 2>&1 systemctl enable containerd.service > /dev/null 2>&1 fi