Details
-
Type:
New Feature
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: docker-build-step-plugin
-
Labels:None
-
Similar Issues:
Description
There doesn't appear to be any hooks in the plugin to explicitly control what ports are exposed to the host and what port mapping should be taken when issuing a "docker run" command.
Need ability both map an exposed port to a fixed port on the host, as well as capture a auto generated host port in an environment variable to pass to the running build.
Code changed in jenkins
User: Vojtech Juranek
Path:
src/main/java/org/jenkinsci/plugins/dockerbuildstep/cmd/StartCommand.java
http://jenkins-ci.org/commit/docker-build-step-plugin/37aab429b6eeff9e29185a5c37885df18a00c9c0
Log:
[FIXED JENKINS-23704] Allow specify port binding when starting the container
Compare: https://github.com/jenkinsci/docker-build-step-plugin/compare/a8b40740b672...37aab429b6ee