drone-plugins/drone-docker

Error starting daemon: Error initializing network controller

Closed this issue · 1 comments

when i pull the plugins/docker image, and push it to my private repo.
then i use the private image repo ,it will be fail.
msg:

time="2020-04-22T06:58:13.700077365Z" level=info msg="Loading containers: start."
time="2020-04-22T06:58:13.706249467Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: ip: can't find device 'bridge'\nbridge                136173  1 br_netfilter\nstp                    12976  1 bridge\nllc                    14552  2 bridge,stp\nip: can't find device 'br_netfilter'\nbr_netfilter           22209  0 \nbridge                136173  1 br_netfilter\nmodprobe: can't change directory to '/lib/modules': No such file or directory\n, error: exit status 1"
time="2020-04-22T06:58:13.709780583Z" level=warning msg="Running modprobe nf_nat failed with message: `ip: can't find device 'nf_nat'\nnf_nat_masquerade_ipv4    13412  1 ipt_MASQUERADE\nnf_nat_ipv4            14115  1 iptable_nat\nnf_nat                 26787  3 xt_nat,nf_nat_masquerade_ipv4,nf_nat_ipv4\nnf_conntrack          133387  6 nf_conntrack_netlink,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,xt_conntrack,nf_nat\nlibcrc32c              12644  3 nf_nat,nf_conntrack,xfs\nmodprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
time="2020-04-22T06:58:13.713115210Z" level=warning msg="Running modprobe xt_conntrack failed with message: `ip: can't find device 'xt_conntrack'\nxt_conntrack           12760  3 \nnf_conntrack          133387  6 nf_conntrack_netlink,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,xt_conntrack,nf_nat\nmodprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
time="2020-04-22T06:58:13.727659157Z" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
time="2020-04-22T06:58:13.727956318Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
time="2020-04-22T06:58:13.727973727Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
time="2020-04-22T06:58:13.728692768Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc4208b4180, TRANSIENT_FAILURE" module=grpc
time="2020-04-22T06:58:13.728731956Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc4208b4180, CONNECTING" module=grpc
Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.6.2: can't initialize iptables table `nat': Permission denied (you must be root)

This plugin got to be escalted as a trusted plugin on the drone server level, otherwise it's not possible to start the daemon.