From cad8a6dc91842070a0c228e73481faff6c861aab Mon Sep 17 00:00:00 2001 From: Cristiangauma Date: Tue, 19 May 2015 22:42:24 +0200 Subject: [PATCH] Adding protocol select menu in portBinding during container creation --- app/components/startContainer/startContainerController.js | 3 +++ app/components/startContainer/startcontainer.html | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/app/components/startContainer/startContainerController.js b/app/components/startContainer/startContainerController.js index f3f5cac81..571a360ad 100644 --- a/app/components/startContainer/startContainerController.js +++ b/app/components/startContainer/startContainerController.js @@ -83,6 +83,9 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt var PortBindings = {}; config.HostConfig.PortBindings.forEach(function(portBinding) { var intPort = portBinding.intPort + "/tcp"; + if (portBinding.protocol === "udp") { + intPort = portBinding.intPort + "/udp"; + } var binding = { HostIp: portBinding.ip, HostPort: portBinding.extPort diff --git a/app/components/startContainer/startcontainer.html b/app/components/startContainer/startcontainer.html index 39285dcff..eaa774f88 100644 --- a/app/components/startContainer/startcontainer.html +++ b/app/components/startContainer/startcontainer.html @@ -289,6 +289,10 @@ +