tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
14.52k stars 2.4k forks source link

Docker-Alpine LXC script errors out due to problems with Alpine repository #3035

Closed trenchcoatjedi closed 6 months ago

trenchcoatjedi commented 6 months ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

The script for the Docker on Alpine LXC currently errors out due to problems with the Alpine repository

What settings are you currently utilizing?

Default Settings

Which Linux distribution are you employing?

Alpine

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

Proxmox console output, errors bolded

Using Default Settings Using Container Type: 1 Using Root Password: secret Container ID: 101 Using Hostname: alpine-docker Using Disk Size: 2 Allocated Cores: 1 Allocated RAM: 1024 Using Bridge: vmbr0 Using IP Address: dhcp Using Gateway IP Address: Default Disable IPv6: no Using Interface MTU Size: Default Using DNS Search Domain: Host Using DNS Server IP Address: Host Using Vlan: Default Enable Root SSH Access: yes Enable Verbose Mode: yes Creating a Alpine-Docker LXC using the above advanced settings ✓ Using local for Template Storage. ✓ Using local-lvm for Container Storage. ✓ Updated LXC Template List ✓ LXC Container 101 was successfully created. ✓ Started LXC Container

[ERROR] in line 100: exit code 2: while executing command $STD apk upgrade

Please provide detailed steps to reproduce the issue.

Run the script as is.

tteck commented 6 months ago

Yeah, looks like the issue is with the Alpine repository, nothing that I can do for that.

trenchcoatjedi commented 6 months ago

The script hits the repository for Alpine 3.20.0_rc2 but the container runs Alpine 3.19

Is there a way to force it to use the repository for version 3.19?

tteck commented 6 months ago

It's currently set to latest-stable https://github.com/tteck/Proxmox/blob/73291211a885df94a8419d3fa38ecbff05f9ab3c/misc/build.func#L622-L625

https://github.com/tteck/Proxmox/commit/d468fc6c1f0bb379f824b193113e872db72401d2 working now

    ____             __            
   / __ \____  _____/ /_  __  _____
  / / / / __ \/ ___/ //_/ _ \/ ___/
 / /_/ / /_/ / /__/ ,< /  __/ /    
/_____/\____/\___/_/|_|\___/_/     
 Alpine

Using Advanced Settings
Using Container Type: 1
Using Root Password: Automatic Login
Container ID: 113
Using Hostname: alpine-docker
Using Disk Size: 2
Allocated Cores: 1
Allocated RAM: 1024
Using Bridge: vmbr0
Using IP Address: dhcp
Using Gateway IP Address: Default
Disable IPv6: yes
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using MAC Address: AE:1A:60:07:B7:59
Using Vlan: Default
Enable Root SSH Access: no
Enable Verbose Mode: no
Creating a Alpine-Docker LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using thin-pool for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 113 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: 192.168.86.250
 ✓ Internet Connected
 ✓ DNS Resolved github.com to 140.82.113.3
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Installed Docker
Would you like to add Portainer? <y/N> 
Would you like to add the Portainer Agent? <y/N> 
Would you like to add Docker Compose? <y/N> 
 ✓ Customized Container
 ✓ Completed Successfully!