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

"Waiting for port" waits forever when Jenkins machine is not docker host

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Linux amd64 + OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
      Jenkins 1.565.1
      docker-build-step 1.7

      Docker 1.01 API 1.12 on remote host

      When Docker is running on a remote machine controlled via REST API, docker-build-step waits forever for specified ports to open, because it tries to connect though Docker's internal NAT network.

      [Docker] INFO: started container id 5d575f0c43d9
      [Docker] INFO: Waiting for port 8080 on 172.17.0.11 (conatiner ID 5d575f0c43d9)

      172.17.0.11 is the container's IPv4 address, which is only connectable from the Docker host. I'd rather expect the plugin to wait for the open port on the Docker host itself (or at a configurable location).

      In this stage, the job can't be cancelled with the stop button and is blocking a build slot until timeout (maybe this timeout value should also be configurable?).

            vjuranek vjuranek
            jks Julian Kassat
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: