mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
Implemented RestartPolicy, Devices, and LxcConf. Unified label convention.
This commit is contained in:
parent
687ed7bac2
commit
a80971dd27
5 changed files with 193 additions and 73 deletions
|
@ -21,7 +21,9 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt
|
|||
DnsSearch: [],
|
||||
VolumesFrom: [],
|
||||
CapAdd: [],
|
||||
CapDrop: []
|
||||
CapDrop: [],
|
||||
Devices: [],
|
||||
LxcConf: []
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -70,6 +72,10 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt
|
|||
config.HostConfig.DnsSearch = getNames(config.HostConfig.DnsSearch);
|
||||
config.HostConfig.CapAdd = getNames(config.HostConfig.CapAdd);
|
||||
config.HostConfig.CapDrop = getNames(config.HostConfig.CapDrop);
|
||||
config.HostConfig.LxcConf = config.HostConfig.LxcConf.reduce(function(prev, cur, idx){
|
||||
prev[cur.name] = cur.value;
|
||||
return prev;
|
||||
}, {});
|
||||
|
||||
var ExposedPorts = {};
|
||||
var PortBindings = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue