From aa392abaf8bc95df66841df6310226f190fded63 Mon Sep 17 00:00:00 2001 From: Dhruv Mistry <68422844+dhruvmistry2000@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:09:03 +0530 Subject: [PATCH 1/3] Adding current user to DOCKER group When i used the docker setup in LINUTIL it didn't add the user to the docker group so this is the edited file --- core/tabs/applications-setup/docker-setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/tabs/applications-setup/docker-setup.sh b/core/tabs/applications-setup/docker-setup.sh index b693656b9..af5781948 100755 --- a/core/tabs/applications-setup/docker-setup.sh +++ b/core/tabs/applications-setup/docker-setup.sh @@ -53,6 +53,11 @@ install_docker() { esac startAndEnableService docker + + # Add the current user to the docker group + printf "%b\n" "${YELLOW}Adding current user to the docker group...${RC}" + "$ESCALATION_TOOL" usermod -aG docker "$USER" + printf "%b\n" "${GREEN}Current user added to the docker group successfully.${RC}" } install_docker_compose() { @@ -109,4 +114,4 @@ install_components() { checkEnv checkEscalationTool -install_components \ No newline at end of file +install_components From 15e3a100091e676aca74693a06641c473cb8f202 Mon Sep 17 00:00:00 2001 From: Dhruv Mistry <68422844+dhruvmistry2000@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:19:51 +0530 Subject: [PATCH 2/3] Update docker-setup.sh --- core/tabs/applications-setup/docker-setup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/core/tabs/applications-setup/docker-setup.sh b/core/tabs/applications-setup/docker-setup.sh index af5781948..c6dbd164e 100755 --- a/core/tabs/applications-setup/docker-setup.sh +++ b/core/tabs/applications-setup/docker-setup.sh @@ -54,7 +54,6 @@ install_docker() { startAndEnableService docker - # Add the current user to the docker group printf "%b\n" "${YELLOW}Adding current user to the docker group...${RC}" "$ESCALATION_TOOL" usermod -aG docker "$USER" printf "%b\n" "${GREEN}Current user added to the docker group successfully.${RC}" From e3397f832929881c1282e5e22fda0094c954178e Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Sun, 17 Nov 2024 02:40:09 +0100 Subject: [PATCH 3/3] use `newgrp` Co-authored-by: Jeevitha Kannan K S --- core/tabs/applications-setup/docker-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tabs/applications-setup/docker-setup.sh b/core/tabs/applications-setup/docker-setup.sh index c6dbd164e..d2c293955 100755 --- a/core/tabs/applications-setup/docker-setup.sh +++ b/core/tabs/applications-setup/docker-setup.sh @@ -56,6 +56,7 @@ install_docker() { printf "%b\n" "${YELLOW}Adding current user to the docker group...${RC}" "$ESCALATION_TOOL" usermod -aG docker "$USER" + newgrp docker printf "%b\n" "${GREEN}Current user added to the docker group successfully.${RC}" }