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

docker.withServer cannot connect using TLS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • docker-workflow-plugin
    • None
    • docker plugin 0.16.2
      jenkins 2.66

      This is my pipeline script:

      docker.withServer('tcp://<servername>:2376', '<jenkins-credential-id) {
                  docker.withRegistry("https://<account_aws>.dkr.ecr.eu-west-1.amazonaws.com", "ecr:eu-west-1:6e420d6b-f42b-45f2-b7a4-7888b2f4bd14"){
                      docker.image("<account_aws>.dkr.ecr.eu-west-1.amazonaws.com/com-pro-callbacks-collector:callbacks-collector-3").pull()
                  }
              }

       

      When I execute it the result is:

       docker pull <account_aws>.dkr.ecr.eu-west-1.amazonaws.com/com-pro-callbacks-collector:callbacks-collector-3
      Post http://<servername>:2376/v1.27/images/create?fromImage=<account_aws>.dkr.ecr.eu-west-1.amazonaws.com%2Fcom-pro-callbacks-collector&tag=callbacks-collector-3: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16".

      • Are you trying to connect to a TLS-enabled daemon without TLS?

            magnayn magnayn
            devisio Devis Calio
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: