mikma / lxd-openwrt

Scripts for building LXD images from OpenWrt rootfs tarballs.
MIT License
150 stars 39 forks source link

ip: RTNETLINK answers: Operation not permitted in Docker #13

Closed aparcar closed 5 years ago

aparcar commented 5 years ago

LXC containers work fine, but Docker contains print

ip: RTNETLINK answers: Operation not permitted

which is executed in the preinit scripts (/lib/preinit/10_indicate_preinit). The command ip -4 address flush dev $pi_ifname actually causes 100% CPU usage.

You got a fix for that?

mikma commented 5 years ago

Using --cap-add net_admin in the run command should solve that. But I think this issue can be left opened since missing cap_net_admin shouldn't cause 100% CPU. It can be handled better.

aparcar commented 5 years ago

Closed thanks to @mikma back porting some patch