Skip to content

Why is there no nerdctl0 network interface on host in rootless mode #2053

Answered by AkihiroSuda
vsiravar asked this question in Q&A
Discussion options

You must be logged in to vote

nerdctl0 is namespaced, as a non-root user can't gain the privilege to create nerdctl in the host netns

$ containerd-rootless-setuptool.sh nsenter -- ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 65520 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b2:eb:29:26:a2:c7 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.100/24 scope global tap0
       valid_lft forever preferred…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vsiravar
Comment options

@vsiravar
Comment options

Answer selected by AkihiroSuda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/rootless Rootless mode
2 participants