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

Get published host port from the container within the inside block

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello, is there a way to get the published host port of the container within the `inside` block?

      Like this:

        docker.build('test').inside('--publish 8080') { c ->
          echo c.port(8080)
        }
      

       Our tests run inside the container, and publish a port for external system to use.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            iyzsong Bunnbu Sou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: