mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
Add labels to container start and display.
This commit is contained in:
parent
25a4607ad6
commit
640c0b39c1
6 changed files with 104 additions and 8 deletions
|
@ -11,6 +11,7 @@ angular.module('startContainer', ['ui.bootstrap'])
|
|||
|
||||
$scope.config = {
|
||||
Env: [],
|
||||
Labels: [],
|
||||
Volumes: [],
|
||||
SecurityOpts: [],
|
||||
HostConfig: {
|
||||
|
@ -66,6 +67,11 @@ angular.module('startContainer', ['ui.bootstrap'])
|
|||
config.Env = config.Env.map(function (envar) {
|
||||
return envar.name + '=' + envar.value;
|
||||
});
|
||||
var labels = {};
|
||||
config.Labels = config.Labels.forEach(function(label) {
|
||||
labels[label.key] = label.value;
|
||||
});
|
||||
config.Labels = labels;
|
||||
|
||||
config.Volumes = getNames(config.Volumes);
|
||||
config.SecurityOpts = getNames(config.SecurityOpts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue