add ipV4Address to Create Docker Container
@@ -39,6 +39,10 @@ class DockerCreateContainer extends AbstractDockerRemoteApiTask {
@Optional
String hostName
+ @Input
+ @Optional
+ String ipv4Address
+
@Input
@Optional
String[] portSpecs
@@ -229,6 +233,10 @@ class DockerCreateContainer extends AbstractDockerRemoteApiTask {
containerCommand.withHostName(getHostName())
}
+ if(getIpv4Address()){
+ containerCommand.withIpv4Address(getIpv4Address())
+ }
+
if(getPortSpecs()) {
containerCommand.withPortSpecs(getPortSpecs())
}
