DNS lookup error while creating docker-alpine LXC #268

Closed
opened 2026-02-04 17:36:53 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @de666 on GitHub (Jan 4, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Docker LXC

📂 What was the exact command used to execute the script?

bash -c "$(wget -qO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/alpine-docker.sh)"

📝 Provide a clear and concise description of the issue.

Error creating the LXC container (alpine version), tested both with advanced and default settings.
It seems something related to DNS, once inside the container it doesn't resolve anything (like www.google.com).
The debian version works correctly.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Alpine

🔄 Steps to reproduce the issue.

  • run from proxmox ve console
bash -c "$(wget -qO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/alpine-docker.sh)"
  • proceed with default settings
  • wait for the error

Paste the full error output (if available).

    ___    __      _                  ____             __            
   /   |  / /___  (_)___  ___        / __ \____  _____/ /_____  _____
  / /| | / / __ \/ / __ \/ _ \______/ / / / __ \/ ___/ //_/ _ \/ ___/
 / ___ |/ / /_/ / / / / /  __/_____/ /_/ / /_/ / /__/ ,< /  __/ /    
/_/  |_/_/ .___/_/_/ /_/\___/     /_____/\____/\___/_/|_|\___/_/     
        /_/                                                          
  ⚙️  Using Default Settings on node server
  🖥️  Operating System: alpine
  🌟  Version: 3.20
  📦  Container Type: Unprivileged
  💾  Disk Size: 2GB
  🧠  CPU Cores: 1
  🛠️  RAM Size: 1024MB
  🆔  Container ID: 102
  🚀  Creating a Alpine-Docker LXC using the above default settings
  
  ✔️  Using local for Template Storage.
  ✔️  Using local-lvm for Container Storage.
  ✔️  Updated LXC Template List
  ✔️  LXC Container 102 was successfully created.
  ✔️  Started LXC Container
WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/main: DNS lookup error
WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/community: DNS lookup error
ERROR: unable to select packages:
  bash (no such package):
    required by: world[bash]

[ERROR] in line 883: exit code 0: while executing command pct exec "$CTID" -- ash -c "apk add bash >/dev/null"

🖼️ Additional context (optional).

No response

Originally created by @de666 on GitHub (Jan 4, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Docker LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/alpine-docker.sh)" ### 📝 Provide a clear and concise description of the issue. Error creating the LXC container (alpine version), tested both with advanced and default settings. It seems something related to DNS, once inside the container it doesn't resolve anything (like www.google.com). The debian version works correctly. ### ⚙️ What settings are you using? - [X] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Alpine ### 🔄 Steps to reproduce the issue. - run from proxmox ve console ``` bash -c "$(wget -qO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/alpine-docker.sh)" ``` - proceed with default settings - wait for the error ### ❌ Paste the full error output (if available). ``` ___ __ _ ____ __ / | / /___ (_)___ ___ / __ \____ _____/ /_____ _____ / /| | / / __ \/ / __ \/ _ \______/ / / / __ \/ ___/ //_/ _ \/ ___/ / ___ |/ / /_/ / / / / / __/_____/ /_/ / /_/ / /__/ ,< / __/ / /_/ |_/_/ .___/_/_/ /_/\___/ /_____/\____/\___/_/|_|\___/_/ /_/ ⚙️ Using Default Settings on node server 🖥️ Operating System: alpine 🌟 Version: 3.20 📦 Container Type: Unprivileged 💾 Disk Size: 2GB 🧠 CPU Cores: 1 🛠️ RAM Size: 1024MB 🆔 Container ID: 102 🚀 Creating a Alpine-Docker LXC using the above default settings ✔️ Using local for Template Storage. ✔️ Using local-lvm for Container Storage. ✔️ Updated LXC Template List ✔️ LXC Container 102 was successfully created. ✔️ Started LXC Container WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/main: DNS lookup error WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/community: DNS lookup error ERROR: unable to select packages: bash (no such package): required by: world[bash] [ERROR] in line 883: exit code 0: while executing command pct exec "$CTID" -- ash -c "apk add bash >/dev/null" ``` ### 🖼️ Additional context (optional). _No response_
Author
Owner

@MickLesk commented on GitHub (Jan 4, 2025):

DNS Lookup error, its your issue. not a script issue

@MickLesk commented on GitHub (Jan 4, 2025): DNS Lookup error, its your issue. not a script issue
Author
Owner

@de666 commented on GitHub (Jan 4, 2025):

DNS Lookup error, its your issue. not a script issue

I don't think so because it's happening only with the alpine version

@de666 commented on GitHub (Jan 4, 2025): > DNS Lookup error, its your issue. not a script issue I don't think so because it's happening only with the alpine version
Author
Owner

@MickLesk commented on GitHub (Jan 4, 2025):

WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/main: DNS lookup error
WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/community: DNS lookup error
ERROR: unable to select packages:
bash (no such package):
required by: world[bash]

look at the error massage and fix yourself.

@MickLesk commented on GitHub (Jan 4, 2025): WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/main: DNS lookup error WARNING: updating and opening http://dl-cdn.alpinelinux.org/alpine/latest-stable/community: DNS lookup error ERROR: unable to select packages: bash (no such package): required by: world[bash] look at the error massage and fix yourself.
Author
Owner

@MickLesk commented on GitHub (Jan 4, 2025):

Script work by the way smooth and without issues

@MickLesk commented on GitHub (Jan 4, 2025): Script work by the way smooth and without issues
Author
Owner

@de666 commented on GitHub (Jan 4, 2025):

if it can be usefull for anyone, it is related to this issue
https://github.com/gliderlabs/docker-alpine/issues/539#issuecomment-2571342596

@de666 commented on GitHub (Jan 4, 2025): if it can be usefull for anyone, it is related to this issue https://github.com/gliderlabs/docker-alpine/issues/539#issuecomment-2571342596
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#268