when I try to publish an image with plugins/docker I get the following error:
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.2
Git commit: 4d60db4
Built: Wed Nov 7 00:49:20 2018
OS/Arch: linux/arm
Experimental: false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
But drone itself has no probblem connecting to docker.sock.
Would you mind sharing the yaml where you define the step? I use the plugins/docker plugin frequently and can’t remember running into this error, maybe we’re using it differently.
I am running drone and drone-kube-runner deployed with the latest chart drone-0.1.5 and drone-runner-kube-0.1.2. My build is restarting and never ends I got this error with the debug=true in the docker plugin
time="2020-05-26T18:54:12.908391005Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
3 time="2020-05-26T18:54:12.909738634Z" level=info msg="libcontainerd: started new containerd process" pid=29
4 time="2020-05-26T18:54:12.909908524Z" level=info msg="parsed scheme: \"unix\"" module=grpc
5 time="2020-05-26T18:54:12.909938212Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
6 time="2020-05-26T18:54:12.910345153Z" level=info msg="ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}]" module=grpc
7 time="2020-05-26T18:54:12.910439642Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
8 time="2020-05-26T18:54:12.910627878Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc4207f58a0, CONNECTING" module=grpc
9 time="2020-05-26T18:54:12Z" level=info msg="starting containerd" revision=468a545b9edcd5932818eb9de8e72413e616e86e version=v1.1.2
10 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.content.v1.content"..." type=io.containerd.content.v1
11 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." type=io.containerd.snapshotter.v1
12 time="2020-05-26T18:54:12Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.btrfs" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter"
13 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.aufs"..." type=io.containerd.snapshotter.v1
14 time="2020-05-26T18:54:12Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.aufs" error="modprobe aufs failed: "ip: can't find device 'aufs'\naufs 241664 0 \nmodprobe: can't change directory to '/lib/modules': No such file or directory\n": exit status 1"
15 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.native"..." type=io.containerd.snapshotter.v1
16 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." type=io.containerd.snapshotter.v1
17 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1
18 time="2020-05-26T18:54:12Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.zfs" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter"
19 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." type=io.containerd.metadata.v1
20 time="2020-05-26T18:54:12Z" level=warning msg="could not use snapshotter zfs in metadata plugin" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter"
21 time="2020-05-26T18:54:12Z" level=warning msg="could not use snapshotter btrfs in metadata plugin" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter"
22 time="2020-05-26T18:54:12Z" level=warning msg="could not use snapshotter aufs in metadata plugin" error="modprobe aufs failed: "ip: can't find device 'aufs'\naufs 241664 0 \nmodprobe: can't change directory to '/lib/modules': No such file or directory\n": exit status 1"
23 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." type=io.containerd.differ.v1
24 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." type=io.containerd.gc.v1
25 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.containers-service"..." type=io.containerd.service.v1
26 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.content-service"..." type=io.containerd.service.v1
27 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.diff-service"..." type=io.containerd.service.v1
28 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.images-service"..." type=io.containerd.service.v1
29 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.leases-service"..." type=io.containerd.service.v1
30 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.namespaces-service"..." type=io.containerd.service.v1
31 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.snapshots-service"..." type=io.containerd.service.v1
32 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." type=io.containerd.monitor.v1
33 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." type=io.containerd.runtime.v1
34 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.service.v1.tasks-service"..." type=io.containerd.service.v1
35 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." type=io.containerd.grpc.v1
36 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." type=io.containerd.grpc.v1
37 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." type=io.containerd.grpc.v1
38 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." type=io.containerd.grpc.v1
39 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." type=io.containerd.grpc.v1
40 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." type=io.containerd.grpc.v1
41 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." type=io.containerd.grpc.v1
42 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." type=io.containerd.grpc.v1
43 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." type=io.containerd.grpc.v1
44 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." type=io.containerd.grpc.v1
45 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." type=io.containerd.grpc.v1
46 time="2020-05-26T18:54:12Z" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." type=io.containerd.grpc.v1
47 time="2020-05-26T18:54:12Z" level=info msg=serving... address="/var/run/docker/containerd/containerd-debug.sock"
48 time="2020-05-26T18:54:12Z" level=info msg=serving... address="/var/run/docker/containerd/containerd.sock"
49 time="2020-05-26T18:54:12Z" level=info msg="containerd successfully booted in 0.043586s"
50 time="2020-05-26T18:54:12.983143149Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc4207f58a0, READY" module=grpc
51 time="2020-05-26T18:54:12.986445286Z" level=info msg="parsed scheme: \"unix\"" module=grpc
52 time="2020-05-26T18:54:12.986472408Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
53 time="2020-05-26T18:54:12.986597378Z" level=info msg="parsed scheme: \"unix\"" module=grpc
54 time="2020-05-26T18:54:12.986604809Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
55 time="2020-05-26T18:54:12.986761754Z" level=info msg="ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}]" module=grpc
56 time="2020-05-26T18:54:12.986802524Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
57 time="2020-05-26T18:54:12.986866821Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc420692140, CONNECTING" module=grpc
58 time="2020-05-26T18:54:12.987064701Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc420692140, READY" module=grpc
59 time="2020-05-26T18:54:12.987317544Z" level=info msg="ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}]" module=grpc
60 time="2020-05-26T18:54:12.987600275Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
61 time="2020-05-26T18:54:12.987892564Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc420184580, CONNECTING" module=grpc
62 time="2020-05-26T18:54:12.989818244Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc420184580, READY" module=grpc
63 time="2020-05-26T18:54:13.043618620Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
64 time="2020-05-26T18:54:13.043990870Z" level=warning msg="Your kernel does not support swap memory limit"
65 time="2020-05-26T18:54:13.044040958Z" level=warning msg="Your kernel does not support cgroup rt period"
66 time="2020-05-26T18:54:13.044049991Z" level=warning msg="Your kernel does not support cgroup rt runtime"
67 time="2020-05-26T18:54:13.044556177Z" level=info msg="Loading containers: start."
68 time="2020-05-26T18:54:13.054539367Z" level=warning msg="Running modprobe nf_nat failed with message: `ip: can't find device 'nf_nat'\nnf_nat_ipv6 16384 1 ip6table_nat\nnf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE\nnf_nat_ipv4 16384 1 iptable_nat\nnf_nat 32768 4 xt_nat,nf_nat_ipv6,nf_nat_masquerade_ipv4,nf_nat_ipv4\nnf_conntrack 131072 11 xt_nat,ip_vs,nf_conntrack_ipv6,nf_nat_ipv6,xt_conntrack,ipt_MASQUERADE,nf_nat_masquerade_ipv4,nf_conntrack_netlink,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat\nlibcrc32c 16384 4 ip_vs,nf_nat,nf_conntrack,raid456\nmodprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
69 time="2020-05-26T18:54:13.067416150Z" level=warning msg="Running modprobe xt_conntrack failed with message: `ip: can't find device 'xt_conntrack'\nxt_conntrack 16384 10 \nnf_conntrack 131072 11 xt_nat,ip_vs,nf_conntrack_ipv6,nf_nat_ipv6,xt_conntrack,ipt_MASQUERADE,nf_nat_masquerade_ipv4,nf_conntrack_netlink,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat\nx_tables 40960 14 xt_recent,xt_nat,xt_statistic,ipt_REJECT,xt_tcpudp,ip6_tables,iptable_mangle,xt_comment,xt_mark,xt_conntrack,ipt_MASQUERADE,xt_addrtype,iptable_filter,ip_tables\nmodprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
70 time="2020-05-26T18:54:13.204306252Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
71 time="2020-05-26T18:54:13.253804273Z" level=info msg="Loading containers: done."
72 time="2020-05-26T18:54:13.300098081Z" level=info msg="Docker daemon" commit=4d60db4 graphdriver(s)=overlay2 version=18.09.0
73 time="2020-05-26T18:54:13.300473983Z" level=info msg="Daemon has completed initialization"
74 time="2020-05-26T18:54:13.311667756Z" level=warning msg="Could not register builder git source: failed to find git binary: exec: \"git\": executable file not found in $PATH"
75 time="2020-05-26T18:54:13.325390271Z" level=info msg="API listen on /var/run/docker.sock"
76 Detected registry credentials