-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
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.
[JENKINS-60674] Get published host port from the container within the inside block
Description |
Original:
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. |
New:
Hello, is there a way to get the published host port of the container within the `inside` block? Like this: {code:java} docker.build('test').inside('--publish 8080') { c -> echo c.port(8080) } {code} Our tests run inside the container, and publish a port for external system to use. |