New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to call cni.Setup: plugin type="macvlan" failed (add): Link not found #2490
Comments
Please try |
> sudo nerdctl run -it --network adguard adguard/adguardhome:v0.107.38
FATA[0000] cannot access containerd socket "/run/containerd/containerd.sock": no such file or directory I am using the rootless nerdctl. @AkihiroSuda |
Macvlan is unsupported for rootless. |
@AkihiroSuda I tried it in root mode. And get another error.
I want to assign LAN ip like 192.168.1.20 to a container. Why the macvlan subnet cannot overlaps with host network? Here is my host device link info.
And I tried it on Docker with same commands. It works. |
Please use dhcp server for more flexible configuration https://github.com/containerd/nerdctl/blob/main/docs/cni.md#macvlanipvlan-networks
Containers subnet should be under the same network as the parent (phyisical) network that means network overlapping if not permited Please ensure that your host ips do not overlap with |
Description
I want to create a container with macvlan network. But it failed when start container. It reports "Link not found" but actually the network device is existed.
I have read the document.
Steps to reproduce the issue
nerdctl network create adguard --driver macvlan -o mode=bridge -o parent=enp1s0 --gateway=192.168.1.2 --subnet=192.168.1.0/24
nerdctl run -it --network adguard adguard/adguardhome:v0.107.38
Describe the results you received and expected
The
enp1s0
device is existed.What version of nerdctl are you using?
nerdctl version 1.5.0
rootless installed.
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
Client:
Namespace: default
Debug Mode: false
Server:
Server Version: v1.7.2
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Log: fluentd journald json-file syslog
Storage: native overlayfs
Security Options:
seccomp
Profile: default
cgroupns
rootless
Kernel Version: 6.3.9-arch1-1
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.4GiB
Name: A02
ID: 7ad6f773-a5c1-4e54-9d91-c881dfd0972a
The text was updated successfully, but these errors were encountered: