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

Always enable tls option even if no credentials are given

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins core version: 2.68
      Docker commons plugin version: 1.8
      docker client: 17.0.5-ce
      docker server: 17.05.0-ce

      When I use remote docker REST api without TLS and don't set "Server Credential", it always try using tls(https). Even if the env variable of DOCKER_TLS_VERIFY is 0, it does not work.

      The build log is like below.
      [docker] $ docker build -t shyr/sci --pull=true /home1/irteam/jenkins_home/workspace/docker
      An error occurred trying to connect: Post
      https://MY_DOCKER_HOST:11375/v1.24/build?buildargs=%7B%7D&buildbinds=null&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&pull=1&rm=1&shmsize=0&t=shyr%2Fsci&ulimits=null
      : http: server gave HTTP response to HTTPS client
      Build step 'Docker Build and Publish' marked build as failure
       

            csanchez Carlos Sanchez
            shyr stephen moon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: