Sunday, 2021-09-05

kata-irc-bot<escita> some updates:  It seems like once we launch a container with `ctr`, a namespace is automatically created with a loop back device. `sudo ip netns exec cnitest-6c7e619e-95a6-aaec-2005-ce338a06ace2 ip link` `1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default qlen 1000`     `link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00`  I manually created a `veth` pairs and  and bridged them with the host network and I21:52
kata-irc-botam able to ping the google dns within this namespace: `sudo ip netns exec cnitest-6c7e619e-95a6-aaec-2005-ce338a06ace2 ping 8.8.8.8` `PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.` `64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=8.23 ms` `64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=8.16 ms`    However, If I do a apt update inside of the container, It still doesn't work. Do you have any suggestions? :slightly_smiling_face:21:52
kata-irc-bot<escita> Hello there, I launched a container with `sudo ctr run --runtime io.containerd.run.kata.v2 -t --rm docker.io/library/ubuntu:latest test  bin/bash`  and it created a network namespace automatically, with only a loop back device. `sudo ip netns exec cnitest-6c7e619e-95a6-aaec-2005-ce338a06ace2 ip link ls` _1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000_    _link/loopback 00:00:00:00:00:00 brd22:24
kata-irc-bot00:00:00:00:00:00_ I wanted to connect this container to the internet without using k8s. So I manually created a veth pair and bridged with the host network using `ip` command22:24
kata-irc-bot<escita> Hello there, I launched a container with `sudo ctr run --runtime io.containerd.run.kata.v2 -t --rm docker.io/library/ubuntu:latest test  bin/bash`  and it seems there is  a network namespace automatically created, with only a loop back device. `sudo ip netns exec cnitest-6c7e619e-95a6-aaec-2005-ce338a06ace2 ip link ls` `1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000`    `link/loopback 00:00:00:00:00:0022:27
kata-irc-bot00:00:00:00:00:00` I wanted to connect this container to the internet without using k8s. So I manually created a `veth pair` and bridged with the host network using `ip` utility.  It seems like I could ping the google dns within this network namespace `sudo ip netns exec cnitest-6c7e619e-95a6-aaec-2005-ce338a06ace2 ping 8.8.8.8` `PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.` `64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=8.23 ms` `64 bytes22:27
kata-irc-botfrom 8.8.8.8: icmp_seq=2 ttl=116 time=8.16 ms` then I go back to the shell of the container i created and issue a command `apt update`  , it doesn't seem to be working, any suggestions ? :slightly_smiling_face:22:27

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!