|
|
@ -45,7 +45,7 @@ $STD sh <(curl -sSL https://get.docker.com) |
|
|
|
msg_ok "Installed Docker $DOCKER_LATEST_VERSION" |
|
|
|
msg_ok "Installed Docker $DOCKER_LATEST_VERSION" |
|
|
|
|
|
|
|
|
|
|
|
read -r -p "Would you like to add Portainer? <y/N> " prompt |
|
|
|
read -r -p "Would you like to add Portainer? <y/N> " prompt |
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then |
|
|
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then |
|
|
|
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION" |
|
|
|
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION" |
|
|
|
docker volume create portainer_data >/dev/null |
|
|
|
docker volume create portainer_data >/dev/null |
|
|
|
$STD docker run -d \ |
|
|
|
$STD docker run -d \ |
|
|
@ -59,7 +59,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then |
|
|
|
msg_ok "Installed Portainer $PORTAINER_LATEST_VERSION" |
|
|
|
msg_ok "Installed Portainer $PORTAINER_LATEST_VERSION" |
|
|
|
else |
|
|
|
else |
|
|
|
read -r -p "Would you like to add the Portainer Agent? <y/N> " prompt |
|
|
|
read -r -p "Would you like to add the Portainer Agent? <y/N> " prompt |
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then |
|
|
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then |
|
|
|
msg_info "Installing Portainer agent $PORTAINER_AGENT_LATEST_VERSION" |
|
|
|
msg_info "Installing Portainer agent $PORTAINER_AGENT_LATEST_VERSION" |
|
|
|
$STD docker run -d \ |
|
|
|
$STD docker run -d \ |
|
|
|
-p 9001:9001 \ |
|
|
|
-p 9001:9001 \ |
|
|
@ -72,7 +72,7 @@ else |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
read -r -p "Would you like to add Docker Compose? <y/N> " prompt |
|
|
|
read -r -p "Would you like to add Docker Compose? <y/N> " prompt |
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then |
|
|
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then |
|
|
|
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION" |
|
|
|
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION" |
|
|
|
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} |
|
|
|
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} |
|
|
|
mkdir -p $DOCKER_CONFIG/cli-plugins |
|
|
|
mkdir -p $DOCKER_CONFIG/cli-plugins |
|
|
|