From 33daeeb00c6219ec7c7cf3109611be4ce9c355a3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 24 Mar 2022 20:08:00 -0400 Subject: [PATCH] Update docker-install.sh --- setup/docker-install.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/setup/docker-install.sh b/setup/docker-install.sh index 632884dd..31754c8a 100644 --- a/setup/docker-install.sh +++ b/setup/docker-install.sh @@ -76,6 +76,28 @@ EOF sh <(curl -sSL https://get.docker.com) &>/dev/null echo -e "${CM}${CL} \r" +read -r -p "Add Portainer? " prompt +if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] +then +PORTAINER="Y" +else +PORTAINER="N" +fi + +if [[ $PORTAINER == "Y" ]]; then +echo -en "${GN} Installing Portainer $PORTAINER_LATEST_VERSION... " +docker volume create portainer_data >/dev/null +docker run -d \ + -p 8000:8000 \ + -p 9000:9000 \ + --name=portainer \ + --restart=always \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v portainer_data:/data \ + portainer/portainer-ce:latest &>/dev/null +echo -e "${CM}${CL} \r" +fi + PASS=$(grep -w "root" /etc/shadow | cut -b6); if [[ $PASS != $ ]]; then echo -en "${GN} Customizing Container... "