Open ghost opened 4 years ago
I'm seeing the same issue:
- name: docker-build-push
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: example.com
repo: example.com/foo/bar
auto_tag: true
debug: true
Results in:
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
time="2020-08-27T11:57:34.665229128Z" level=info msg="Starting up"
time="2020-08-27T11:57:34.684366927Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
time="2020-08-27T11:57:34.686358690Z" level=info msg="libcontainerd: started new containerd process" pid=43
time="2020-08-27T11:57:34.686518312Z" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2020-08-27T11:57:34.686536419Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2020-08-27T11:57:34.686681066Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc
time="2020-08-27T11:57:34.686710960Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
time="2020-08-27T11:57:34.722132716Z" level=info msg="starting containerd" revision=7ad184331fa3e55e52b890ea95e65ba581ae3429 version=v1.2.13
time="2020-08-27T11:57:34.722839168Z" level=info msg="loading plugin "io.containerd.content.v1.content"..." type=io.containerd.content.v1
time="2020-08-27T11:57:34.722969779Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." type=io.containerd.snapshotter.v1
time="2020-08-27T11:57:34.723340100Z" 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"
time="2020-08-27T11:57:34.723367196Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.aufs"..." type=io.containerd.snapshotter.v1
time="2020-08-27T11:57:34.732467623Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.aufs" error="modprobe aufs failed: "ip: can't find device 'aufs'\nmodprobe: can't change directory to '/lib/modules': No such file or directory\n": exit status 1"
time="2020-08-27T11:57:34.732521348Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.native"..." type=io.containerd.snapshotter.v1
time="2020-08-27T11:57:34.732826786Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." type=io.containerd.snapshotter.v1
time="2020-08-27T11:57:34.733205576Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1
time="2020-08-27T11:57:34.733654329Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1
time="2020-08-27T11:57:34.733685621Z" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." type=io.containerd.metadata.v1
time="2020-08-27T11:57:34.733777140Z" 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: skip plugin"
time="2020-08-27T11:57:34.733795443Z" 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"
time="2020-08-27T11:57:34.733805527Z" level=warning msg="could not use snapshotter aufs in metadata plugin" error="modprobe aufs failed: "ip: can't find device 'aufs'\nmodprobe: can't change directory to '/lib/modules': No such file or directory\n": exit status 1"
time="2020-08-27T11:57:34.745943971Z" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." type=io.containerd.differ.v1
time="2020-08-27T11:57:34.746014042Z" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." type=io.containerd.gc.v1
time="2020-08-27T11:57:34.746205124Z" level=info msg="loading plugin "io.containerd.service.v1.containers-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.746278752Z" level=info msg="loading plugin "io.containerd.service.v1.content-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.746298752Z" level=info msg="loading plugin "io.containerd.service.v1.diff-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.746318906Z" level=info msg="loading plugin "io.containerd.service.v1.images-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.746338560Z" level=info msg="loading plugin "io.containerd.service.v1.leases-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.746357860Z" level=info msg="loading plugin "io.containerd.service.v1.namespaces-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.746374384Z" level=info msg="loading plugin "io.containerd.service.v1.snapshots-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.746394334Z" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." type=io.containerd.runtime.v1
time="2020-08-27T11:57:34.746789183Z" level=info msg="loading plugin "io.containerd.runtime.v2.task"..." type=io.containerd.runtime.v2
time="2020-08-27T11:57:34.746950199Z" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." type=io.containerd.monitor.v1
time="2020-08-27T11:57:34.747494831Z" level=info msg="loading plugin "io.containerd.service.v1.tasks-service"..." type=io.containerd.service.v1
time="2020-08-27T11:57:34.747545955Z" level=info msg="loading plugin "io.containerd.internal.v1.restart"..." type=io.containerd.internal.v1
time="2020-08-27T11:57:34.747846057Z" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.747878203Z" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.747895515Z" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.747910861Z" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.747934040Z" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.747953408Z" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.747968845Z" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.747984806Z" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.748004128Z" level=info msg="loading plugin "io.containerd.internal.v1.opt"..." type=io.containerd.internal.v1
time="2020-08-27T11:57:34.748484584Z" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.748520046Z" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.748539177Z" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.748568053Z" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." type=io.containerd.grpc.v1
time="2020-08-27T11:57:34.749040080Z" level=info msg=serving... address="/var/run/docker/containerd/containerd-debug.sock"
time="2020-08-27T11:57:34.749133171Z" level=info msg=serving... address="/var/run/docker/containerd/containerd.sock"
time="2020-08-27T11:57:34.749145938Z" level=info msg="containerd successfully booted in 0.028153s"
time="2020-08-27T11:57:34.765841327Z" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2020-08-27T11:57:34.765920975Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2020-08-27T11:57:34.765968875Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc
time="2020-08-27T11:57:34.766001803Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
time="2020-08-27T11:57:34.768798518Z" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2020-08-27T11:57:34.768830469Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2020-08-27T11:57:34.768859135Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc
time="2020-08-27T11:57:34.768875022Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
time="2020-08-27T11:57:34.835871495Z" level=info msg="Loading containers: start."
time="2020-08-27T11:57:34.851608781Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: ip: can't find device 'bridge'\nip: can't find device 'br_netfilter'\nbr_netfilter 24576 0 \nmodprobe: can't change directory to '/lib/modules': No such file or directory\n, error: exit status 1"
time="2020-08-27T11:57:35.010475169Z" 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"
time="2020-08-27T11:57:35.158281662Z" level=info msg="Loading containers: done."
time="2020-08-27T11:57:35.225443641Z" level=info msg="Docker daemon" commit=afacb8b7f0 graphdriver(s)=overlay2 version=19.03.8
time="2020-08-27T11:57:35.225749921Z" level=info msg="Daemon has completed initialization"
time="2020-08-27T11:57:35.289330617Z" level=info msg="API listen on /var/run/docker.sock"
time="2020-08-27T11:57:37Z" level=fatal msg="Error authenticating: exit status 1"
I'm seeing the same issue:
- name: docker-build-push image: plugins/docker settings: username: from_secret: docker_username password: from_secret: docker_password registry: example.com repo: example.com/foo/bar auto_tag: true debug: true
Results in:
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock time="2020-08-27T11:57:34.665229128Z" level=info msg="Starting up" time="2020-08-27T11:57:34.684366927Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found" time="2020-08-27T11:57:34.686358690Z" level=info msg="libcontainerd: started new containerd process" pid=43 time="2020-08-27T11:57:34.686518312Z" level=info msg="parsed scheme: \"unix\"" module=grpc time="2020-08-27T11:57:34.686536419Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2020-08-27T11:57:34.686681066Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc time="2020-08-27T11:57:34.686710960Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2020-08-27T11:57:34.722132716Z" level=info msg="starting containerd" revision=7ad184331fa3e55e52b890ea95e65ba581ae3429 version=v1.2.13 time="2020-08-27T11:57:34.722839168Z" level=info msg="loading plugin "io.containerd.content.v1.content"..." type=io.containerd.content.v1 time="2020-08-27T11:57:34.722969779Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." type=io.containerd.snapshotter.v1 time="2020-08-27T11:57:34.723340100Z" 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" time="2020-08-27T11:57:34.723367196Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.aufs"..." type=io.containerd.snapshotter.v1 time="2020-08-27T11:57:34.732467623Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.aufs" error="modprobe aufs failed: "ip: can't find device 'aufs'\nmodprobe: can't change directory to '/lib/modules': No such file or directory\n": exit status 1" time="2020-08-27T11:57:34.732521348Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.native"..." type=io.containerd.snapshotter.v1 time="2020-08-27T11:57:34.732826786Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." type=io.containerd.snapshotter.v1 time="2020-08-27T11:57:34.733205576Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1 time="2020-08-27T11:57:34.733654329Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1 time="2020-08-27T11:57:34.733685621Z" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." type=io.containerd.metadata.v1 time="2020-08-27T11:57:34.733777140Z" 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: skip plugin" time="2020-08-27T11:57:34.733795443Z" 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" time="2020-08-27T11:57:34.733805527Z" level=warning msg="could not use snapshotter aufs in metadata plugin" error="modprobe aufs failed: "ip: can't find device 'aufs'\nmodprobe: can't change directory to '/lib/modules': No such file or directory\n": exit status 1" time="2020-08-27T11:57:34.745943971Z" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." type=io.containerd.differ.v1 time="2020-08-27T11:57:34.746014042Z" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." type=io.containerd.gc.v1 time="2020-08-27T11:57:34.746205124Z" level=info msg="loading plugin "io.containerd.service.v1.containers-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.746278752Z" level=info msg="loading plugin "io.containerd.service.v1.content-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.746298752Z" level=info msg="loading plugin "io.containerd.service.v1.diff-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.746318906Z" level=info msg="loading plugin "io.containerd.service.v1.images-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.746338560Z" level=info msg="loading plugin "io.containerd.service.v1.leases-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.746357860Z" level=info msg="loading plugin "io.containerd.service.v1.namespaces-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.746374384Z" level=info msg="loading plugin "io.containerd.service.v1.snapshots-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.746394334Z" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." type=io.containerd.runtime.v1 time="2020-08-27T11:57:34.746789183Z" level=info msg="loading plugin "io.containerd.runtime.v2.task"..." type=io.containerd.runtime.v2 time="2020-08-27T11:57:34.746950199Z" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." type=io.containerd.monitor.v1 time="2020-08-27T11:57:34.747494831Z" level=info msg="loading plugin "io.containerd.service.v1.tasks-service"..." type=io.containerd.service.v1 time="2020-08-27T11:57:34.747545955Z" level=info msg="loading plugin "io.containerd.internal.v1.restart"..." type=io.containerd.internal.v1 time="2020-08-27T11:57:34.747846057Z" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.747878203Z" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.747895515Z" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.747910861Z" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.747934040Z" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.747953408Z" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.747968845Z" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.747984806Z" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.748004128Z" level=info msg="loading plugin "io.containerd.internal.v1.opt"..." type=io.containerd.internal.v1 time="2020-08-27T11:57:34.748484584Z" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.748520046Z" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.748539177Z" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.748568053Z" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." type=io.containerd.grpc.v1 time="2020-08-27T11:57:34.749040080Z" level=info msg=serving... address="/var/run/docker/containerd/containerd-debug.sock" time="2020-08-27T11:57:34.749133171Z" level=info msg=serving... address="/var/run/docker/containerd/containerd.sock" time="2020-08-27T11:57:34.749145938Z" level=info msg="containerd successfully booted in 0.028153s" time="2020-08-27T11:57:34.765841327Z" level=info msg="parsed scheme: \"unix\"" module=grpc time="2020-08-27T11:57:34.765920975Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2020-08-27T11:57:34.765968875Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc time="2020-08-27T11:57:34.766001803Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2020-08-27T11:57:34.768798518Z" level=info msg="parsed scheme: \"unix\"" module=grpc time="2020-08-27T11:57:34.768830469Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2020-08-27T11:57:34.768859135Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc time="2020-08-27T11:57:34.768875022Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2020-08-27T11:57:34.835871495Z" level=info msg="Loading containers: start." time="2020-08-27T11:57:34.851608781Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: ip: can't find device 'bridge'\nip: can't find device 'br_netfilter'\nbr_netfilter 24576 0 \nmodprobe: can't change directory to '/lib/modules': No such file or directory\n, error: exit status 1" time="2020-08-27T11:57:35.010475169Z" 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" time="2020-08-27T11:57:35.158281662Z" level=info msg="Loading containers: done." time="2020-08-27T11:57:35.225443641Z" level=info msg="Docker daemon" commit=afacb8b7f0 graphdriver(s)=overlay2 version=19.03.8 time="2020-08-27T11:57:35.225749921Z" level=info msg="Daemon has completed initialization" time="2020-08-27T11:57:35.289330617Z" level=info msg="API listen on /var/run/docker.sock" time="2020-08-27T11:57:37Z" level=fatal msg="Error authenticating: exit status 1"
i figure it out. try using your username and password directly, don't use the secret.
and you may need to add insecure: true
Doh, I found my problem - I was using an old password. It works now, without needing to use insecure
or to hardcode the password. 🙂
Looks like the insecure flag is not really implemented: https://github.com/drone-plugins/drone-docker/search?q=Insecure&unscoped_q=Insecure
How to use drone-docker plugins to build my image to a insecure local registry ?
Here is my part of
.drone.yml
....Maybe the problem is here:
Get https://192.168.8.95/v2/: dial tcp 192.168.8.95:443: getsockopt: connection refused"
insecure: true
seems not to work ?? Please help.....