Jenkins and docker plugin: Problems to launch container

I have installed docker-plugin and configured it like in docker plugin instructions and used evarga/jenkins-slave image and custom images ( and tried with sshkeys and username&password credentials ) but i cannot run job. Connection test to docker cloud works but when i launch jenkins job it fails always like below.

Building in workspace /var/lib/jenkins/workspace/docker_test
ERROR: Build step failed with exception
java.lang.NullPointerException
    at com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlOptionProvisionAndStart.execute(DockerBuilderControlOptionProvisionAndStart.java:32)
    at com.nirima.jenkins.plugins.docker.builder.DockerBuilderControl.perform(DockerBuilderControl.java:59)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    at hudson.model.Run.execute(Run.java:1744)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:374)
Build step 'Start/Stop Docker Containers' marked build as failure
Finished: FAILURE

I have Docker version:

  • Spark app unable to write to elasticsearch cluster running in docker
  • Schema Registry container: Server died unexpectedly when launching using docker-compose
  • How to remove a mount for existing container?
  • Is it possible to run GUI apps in windows containers?
  • Accessing Docker-compose containers hostnames from a container
  • Docker crash test with many containers of the same image
  •     Client version: 1.6.0
        Client API version: 1.18
        Go version (client): go1.4.2
        Git commit (client): 4749651
        OS/Arch (client): linux/amd64
    

    and Docker plugin 0.9.0-rc1.

    All hints and instructions how to get this work with evarga/jenkins-slave image are wellcome 🙂

  • Docker - Rollback data in MySQL container after recreating
  • Workers dying early due to uneven work distribution in Luigi (2.6.1)
  • Using im2rec in MXnet to create dataset with png images
  • Tell difference of a scaled app on Mesos
  • MySQL 2002 Connection Refused - OSX/MySQL/Docker
  • Why does “bundle install --path” break when “bundle install” works?
  • One Solution collect form web for “Jenkins and docker plugin: Problems to launch container”

    I had similar issue when jenkins couldn’t talk to docker server port and when label contained dots.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.