1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

Added ExtraHosts option.

This commit is contained in:
Kevan Ahlquist 2015-01-28 19:26:48 -06:00
parent a80971dd27
commit fd68039cb9
5 changed files with 65 additions and 2 deletions

View file

@ -23,7 +23,8 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt
CapAdd: [],
CapDrop: [],
Devices: [],
LxcConf: []
LxcConf: [],
ExtraHosts: []
}
};
@ -76,6 +77,7 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt
prev[cur.name] = cur.value;
return prev;
}, {});
config.HostConfig.ExtraHosts = config.HostConfig.ExtraHosts.map(function(entry) {return entry.host + ':' + entry.ip;});
var ExposedPorts = {};
var PortBindings = {};