Files
ProxmoxVE/ct/alpine-docker.sh

52 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.docker.com/
APP="Alpine-Docker"
var_tags="${var_tags:-docker;alpine}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-2}"
var_os="${var_os:-alpine}"
var_version="${var_version:-3.22}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
2023-03-23 10:19:26 -04:00
function update_script() {
if ! apk -e info newt >/dev/null 2>&1; then
2023-03-24 13:28:19 -04:00
apk add -q newt
fi
2023-03-23 10:35:48 -04:00
while true; do
CHOICE=$(
2023-09-09 05:13:17 -04:00
whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --menu "Select option" 11 58 1 \
2023-03-23 10:35:48 -04:00
"1" "Check for Docker Updates" 3>&2 2>&1 1>&3
)
exit_status=$?
if [ $exit_status == 1 ]; then
clear
exit-script
fi
header_info
case $CHOICE in
1)
2025-05-12 16:07:07 +02:00
$STD apk -U upgrade
2023-03-23 10:35:48 -04:00
exit
;;
esac
done
exit 0
2023-03-23 10:19:26 -04:00
}
start
build_container
description
2025-05-12 16:07:07 +02:00
msg_ok "Completed Successfully!\n"