add sudo to docker in case

This commit is contained in:
lou 2024-10-15 17:03:06 -04:00
parent 4c6c1ffcb8
commit 7a39496fcd

2
manage
View File

@ -86,7 +86,7 @@ function install_docker() {
echo -e "${COLOR_GREEN}Docker Compose file already exists, skipping.${COLOR_RESET}" echo -e "${COLOR_GREEN}Docker Compose file already exists, skipping.${COLOR_RESET}"
fi fi
echo -e "${COLOR_BLUE}Creating Docker network...${COLOR_RESET}" echo -e "${COLOR_BLUE}Creating Docker network...${COLOR_RESET}"
docker network create --subnet=10.5.0.0/16 aidxnfun-n sudo docker network create --subnet=10.5.0.0/16 aidxnfun-n
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
sudo usermod -aG docker $USER sudo usermod -aG docker $USER
echo -e "${COLOR_GREEN}User added to Docker group. Please log out and back in for the changes to take effect.${COLOR_RESET}" echo -e "${COLOR_GREEN}User added to Docker group. Please log out and back in for the changes to take effect.${COLOR_RESET}"