Wednesday, 2021-08-18

kata-irc-bot<feng.wang> My Kata container cannot access Internet. I ran `ping 8.8.8.8` inside the container and it hangs forever. ifconfig output looks correct: ```/ # ifconfig eth0      Link encap:Ethernet  HWaddr C2:3B:70:5A:20:BA             inet addr:172.19.0.58  Bcast:172.19.0.255  Mask:255.255.255.0           inet6 addr: fe80::c03b:70ff:fe5a:20ba/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1922:11
kata-irc-boterrors:0 dropped:0 overruns:0 frame:0           TX packets:148 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:1362 (1.3 KiB)  TX bytes:14012 (13.6 KiB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0      22:11
kata-irc-bot    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)``` I used the `10-mynet.conf` from the Kata document: ```{         "cniVersion": "0.2.0",         "name": "mynet",         "type": "bridge",         "bridge": "cni0",         "isGateway": true,         "ipMasq": true,         "ipam": {                 "type": "host-local",                 "subnet":22:11
kata-irc-bot"172.19.0.0/24",                 "routes": [                         { "dst": "0.0.0.0/0" }                 ]         } }``` Any pointers?22:11

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