Skip to content

Commit

Permalink
Make sure docker group is made and user is added to the docker group
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 22, 2024
1 parent 7ed103a commit 39ce959
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/modules/software/install_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39ce959

Please sign in to comment.