docker.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/usr/bin/env bash
  2. source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
  3. # Copyright (c) 2021-2023 tteck
  4. # Author: tteck (tteckster)
  5. # License: MIT
  6. # https://github.com/tteck/Proxmox/raw/main/LICENSE
  7. function header_info {
  8. clear
  9. cat <<"EOF"
  10. ____ __
  11. / __ \____ _____/ /_ __ _____
  12. / / / / __ \/ ___/ //_/ _ \/ ___/
  13. / /_/ / /_/ / /__/ ,< / __/ /
  14. /_____/\____/\___/_/|_|\___/_/
  15. EOF
  16. }
  17. header_info
  18. echo -e "Loading..."
  19. APP="Docker"
  20. var_disk="4"
  21. var_cpu="2"
  22. var_ram="2048"
  23. var_os="debian"
  24. var_version="12"
  25. variables
  26. color
  27. catch_errors
  28. function default_settings() {
  29. CT_TYPE="1"
  30. PW=""
  31. CT_ID=$NEXTID
  32. HN=$NSAPP
  33. DISK_SIZE="$var_disk"
  34. CORE_COUNT="$var_cpu"
  35. RAM_SIZE="$var_ram"
  36. BRG="vmbr0"
  37. NET="dhcp"
  38. GATE=""
  39. DISABLEIP6="no"
  40. MTU=""
  41. SD=""
  42. NS=""
  43. MAC=""
  44. VLAN=""
  45. SSH="no"
  46. FUSE="no"
  47. VERB="no"
  48. echo_default
  49. }
  50. function update_script() {
  51. header_info
  52. if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
  53. msg_info "Updating ${APP} LXC"
  54. apt-get update &>/dev/null
  55. apt-get -y upgrade &>/dev/null
  56. msg_ok "Updated ${APP} LXC"
  57. exit
  58. }
  59. start
  60. build_container
  61. description
  62. msg_ok "Completed Successfully!\n"