This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Bunnbu Sou
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: