Docker Plugin broken?

Our team uses the plugins/docker image to build and publish docker images. We have always used the latest version, by default, until this morning it broke with the following error:

+ /usr/local/bin/dockerd -g /var/lib/docker
time="2017-11-30T15:23:19Z" level=fatal msg="Error authenticating: exit status 125"

We haven’t changed our credentials and I can log in with the same credentials both via the CLI and the Docker Hub website.

Here is our config

    image: plugins/docker
    username: <redacted>
    password: <redacted>
    repo: odyssey/${DRONE_REPO_NAME}
    tag: ${DRONE_BRANCH/\//_}_${DRONE_COMMIT:0:8},${DRONE_BRANCH/\//_}

Nope, I just tested the latest image and it is working for me.

You might find this debug guide helpful:

You might also find it helpful to use the tagged plugin images in your yaml instead of using latest. This would protect you from breaking changes, should they occur.

It could be the combination with our Drone version (0.7.0), since it looks like you are using a different version. I also have pull: true, so I know I always get the latest version of the plugins/docker image. When I set the image to plugins/docker:17.05, everything works as expected.

Also, are you publishing to a private Docker Hub repo?

Plugins are version agnostic, and would not behave differently in 0.7 vs 0.8. I recommend using the debug guide and setting debug: true to surface additional information.

The only difference between 17.05 and latest is the Docker version. The latest tag uses 17.10 and the inability to login often indicates the Docker daemon could not start (debug: true would surface this). This would generally indicate an issue with the host machine configuration, or perhaps a bug in the official docker:dind-17.10 container.

Hi, for information,

i have the same issue explain above with the new plugin version 17.05->17.10.

→ Rancher OS
→ Docker 17.03
→ Drone 0.5

→ Private registry (basic auth with drone secret)

Debug Log:

New version : 17.10

Version : 17.05

  • /usr/local/bin/dockerd -g /var/lib/docker
    0s2time=“2017-11-30T20:08:13Z” level=warning msg=“the “-g / --graph” flag is deprecated. Please use “–data-root” instead”
    0s3time=“2017-11-30T20:08:13.843130669Z” level=warning msg=“could not change group /var/run/docker.sock to docker: group docker not found”
    0s4time=“2017-11-30T20:08:13.847144504Z” level=info msg=“libcontainerd: new containerd process, pid: 27”
    0s5time=“2017-11-30T20:08:14.908938672Z” level=info msg=“Graph migration to content-addressability took 0.00 seconds”
    1s6time=“2017-11-30T20:08:14.909593108Z” level=warning msg=“Your kernel does not support cgroup rt period”
    1s7time=“2017-11-30T20:08:14.909630938Z” level=warning msg=“Your kernel does not support cgroup rt runtime”
    1s8time=“2017-11-30T20:08:14.910637470Z” level=info msg=“Loading containers: start.”
    1s9time=“2017-11-30T20:08:14.913703911Z” level=warning msg=“Running modprobe bridge br_netfilter failed with message: modprobe: can’t change directory to ‘/lib/modules’: No such file or directory\n, error: exit status 1”
    1s10time=“2017-11-30T20:08:14.915405630Z” level=warning msg=“Running modprobe nf_nat failed with message: modprobe: can't change directory to '/lib/modules': No such file or directory, error: exit status 1”
    1s11time=“2017-11-30T20:08:14.916957160Z” level=warning msg=“Running modprobe xt_conntrack failed with message: modprobe: can't change directory to '/lib/modules': No such file or directory, error: exit status 1”
    1s12time=“2017-11-30T20:08:15.012007145Z” level=info msg=“Default bridge (docker0) is assigned with an IP address Daemon option --bip can be used to set a preferred IP address”
    1s13time=“2017-11-30T20:08:15.078701793Z” level=info msg=“Loading containers: done.”
    1s14time=“2017-11-30T20:08:15.127987206Z” level=info msg=“Daemon has completed initialization”
    1s15time=“2017-11-30T20:08:15.128061978Z” level=info msg=“Docker daemon” commit=89658be graphdriver=overlay2 version=17.05.0-ce
    1s16time=“2017-11-30T20:08:15.150978019Z” level=info msg=“API listen on /var/run/docker.sock”
    1s17+ /usr/local/bin/docker version

Seem to fail on docker version command.

Seem to fail on docker version command

I am not sure this is the case, we would see + /usr/local/bin/docker version in the logs, which I do not see in the screenshot. This would tell me the plugin did not get that far. The version is only printed after the login, which seems to be the point of failure.

I cannot repeat any errors with the plugin, and we only bumped the Docker version. I do not have enough information (at least not yet) to reproduce or to conclude there is a problem with the plugin itself.

If you think the plugin is broken, you should be able to run it in isolation to confirm. Instructions for running the plugin directly can be found here:

Hello there,

Just wanted to report that we did have this issue reported to me at work today and I was able to track down why Docker was exiting with status 125.

We are still running Drone 0.5 and with the update of the plugin to DinD 17.10 we had this failure happen. I’ve pinpointed that this issue coreletae with the deprecation of the docker login -e option. By default, the plugin will use the -e options if the email secret is set (in our case it was setup via the DOCKER_EMAIL secret), see By removing the secret for our database we were able to fix the issue.

I am pretty sure that this is whatt is causing us issue, as I have also checked the return code for Docker on 17.11 locally and when trying to log with docker login -u me -e -p mypassword Docker exits with the specific code 125 with the following error message: unknown shorthand flag: 'e' in -e.

Hope this helps.

PS: I was going to create an issue on Github when I was redirected here and found this thread.

1 Like


thanks @0rax,

i can confirm that if i remove email parameter in .drone.yml and just keep secrets DOCKER_USERNAME and DOCKER_PASSWORD it works.

Latest published plugin version 17.10 broke publish step on drone 0.5.
Had to switch back from latest to 17.05 version in order to publish images.

Docker no longer accepts an email at login. As mentioned above, you just need to remove the email from the yaml or from your secrets.

Removing the email fixed the issue for me as well. Thank you all!