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:
parent
a80971dd27
commit
fd68039cb9
5 changed files with 65 additions and 2 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue