Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42157

unix protocol is not supported when using unix:///var/run/docker.sock

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • docker-plugin
    • Jenkins-2.32.2

      It seems that the docker plugin is not able to connect to docker even when docker is configured on the same machine as the jenkins master and if you try to configure `unix:///var/run/docker.sock` you will get an exception:

      org.apache.http.conn.UnsupportedSchemeException: unix protocol is not supported
      javax.ws.rs.ProcessingException: org.apache.http.conn.UnsupportedSchemeException: unix protocol is not supported
      	at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:481)
      	at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:252)
      

      info:

      • running docker commands works from both root and jenkins user on that machine (jenkins used being added to the docker group
      • machine: fedora 25 using docker-engine (but also tested with fedora 23 running docker.io and got same results).
      • The info-tips of the plugin suggest using `unix:///var/run/docker.sock` so it doesn't make any sense to get such an error. The sock file exists.
      • jenkins stable: 2.32.2

          [JENKINS-42157] unix protocol is not supported when using unix:///var/run/docker.sock

          kumy kumy added a comment -

          kumy kumy added a comment - Link to https://github.com/jenkinsci/docker-plugin/issues/496

            ndeloof Nicolas De Loof
            ssbarnea Sorin Sbarnea
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: