create docker network automatically

This commit is contained in:
lou 2024-10-15 17:01:15 -04:00
parent 65741a7f39
commit 4c6c1ffcb8

4
manage
View File

@ -80,10 +80,14 @@ function install_docker() {
echo "Couldn't find example Docker Compose file"
else
sudo cp docker-compose.yml.example docker-compose.yml
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi
else
echo -e "${COLOR_GREEN}Docker Compose file already exists, skipping.${COLOR_RESET}"
fi
echo -e "${COLOR_BLUE}Creating Docker network...${COLOR_RESET}"
docker network create --subnet=10.5.0.0/16 aidxnfun-n
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
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}"
}