mirror of https://github.com/tteck/Proxmox.git
Update docker-install.sh
This commit is contained in:
parent
8a99bf2f55
commit
33daeeb00c
|
@ -76,6 +76,28 @@ EOF
|
||||||
sh <(curl -sSL https://get.docker.com) &>/dev/null
|
sh <(curl -sSL https://get.docker.com) &>/dev/null
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
|
read -r -p "Add Portainer? <Y/n> " 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);
|
PASS=$(grep -w "root" /etc/shadow | cut -b6);
|
||||||
if [[ $PASS != $ ]]; then
|
if [[ $PASS != $ ]]; then
|
||||||
echo -en "${GN} Customizing Container... "
|
echo -en "${GN} Customizing Container... "
|
||||||
|
|
Loading…
Reference in New Issue