Jenkins with Docker plugin java.lang.NullPointerException: uri was not specified

I’m trying to use the Docker plugin with Jenkins. But Jenkins cannot access the REST API.

In the Jenkins configuration I put the Docker REST URL: and when clicking on test connection it gives me Something went wrong, cannot connect to, cause: null

  • Docker push to artifactory gives a 403
  • Docker mount error in windows
  • Nginx configuration for docker repos in Artifactory
  • Running a Docker container with the -p or -P flag causes it to fail
  • How to auto start docker containers in Docker for mac?
  • docker extra_host parameter expects a dictionary value for hostname, how can I use a variable?
  • Jul 21, 2016 8:57:52 AM WARNING org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl doTestConnection
    uri was not specified
    java.lang.NullPointerException: uri was not specified
    at com.github.dockerjava.core.DockerClientConfig$DockerClientConfigBuilder.withUri(
    at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl.createDockerClient(
    at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl.getDockerClient(
    at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl.doTestConnection(
    at sun.reflect.GeneratedMethodAccessor235.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(

    But when I login to user jenkins su jenkins and do a curl everything works as expected. I started Docker with -H tcp:// -H unix:///var/run/docker.sock.

    What am I doing wrong?

  • Extend Existing Docker Image
  • Docker IPv6: Disable IPv4 in bridge docker0 and docker network
  • Dropping priviliges inside of the container
  • Linking Containers with Pipeline
  • Why is 'fig build' returning: AttributeError: 'WrappedSocket' object has no attribute 'recvfrom'?
  • pdf2htmlEX cannot open or read file
  • 2 Solutions collect form web for “Jenkins with Docker plugin java.lang.NullPointerException: uri was not specified”

    Had the same issue, for me it was a stupid little thing.

    Enter the URI: or 2375 for the new version and click Apply first before you Test the connection.

    Current plugin ver 1.39 doesn’t accept http url format. Only tcp:// works fine.

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