Closed
Description
Description
This is quite confounding.
sudo nerdctl run --rm -ti debian sh -c -- "apt-get update"
Will fail
Err:1 http://deb.debian.org/debian bookworm InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://deb.debian.org/debian bookworm-updates InRelease
Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
Temporary failure resolving 'deb.debian.org'
(same with ubuntu)
BUT
sudo nerdctl run --rm -ti alpine sh -c -- "apk update; apk add curl"
Works just fine.
Furthermore:
- using
net host
works just fine - this definitely has to do with bridge - using a different nameserver (
sudo nerdctl run --dns 1.1.1.1 --rm -ti debian bash
) does NOT fix the problem - using docker with the same images, on the same host, works just fine
Since this is working with alpine, my intuition is to blame glibc.
@AkihiroSuda does this problem sound familiar in any way?
Any pointer on how to debug this?
Steps to reproduce the issue
No response
Describe the results you received and expected
na
What version of nerdctl are you using?
Host is:
apo@amaterasu:~/post $ uname -a
Linux amaterasu 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
apo@amaterasu:~/post $ cat /etc/issue
Debian GNU/Linux 12 \n \l
apo@amaterasu:~/post $ sudo nerdctl version
WARN[0000] unable to determine buildctl version: exec: "buildctl": executable file not found in $PATH
Client:
Version: v2.0.0
OS/Arch: linux/arm64
Git commit: ef588dafa080e3dbc9c061ff3802affb66aef291
buildctl:
Version:
Server:
containerd:
Version: 1.7.23
GitCommit: 57f17b0a6295a39009d861b89e3b3b87b005ca27
runc:
Version: 1.1.14
GitCommit: v1.1.14-0-g2c9f560
apo@amaterasu:~/post $ sudo nerdctl info
Client:
Namespace: default
Debug Mode: false
Server:
Server Version: 1.7.23
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: : systemd
Cgroup Version: : 2
Plugins:
Log: fluentd journald json-file none syslog
Storage: native overlayfs
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.6.51+rpt-rpi-v8
Operating System: Debian GNU/Linux 12 (bookworm)
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 3.703GiB
Name: amaterasu
ID: 928b00e8-0257-43b5-be2c-5016e071c1f0
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
apo@amaterasu:~/post $ /opt/cni/bin/bridge --version
CNI bridge plugin v1.5.1
CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response