mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
Added ExtraHosts option.
This commit is contained in:
parent
a80971dd27
commit
fd68039cb9
5 changed files with 65 additions and 2 deletions
23
dist/dockerui.js
vendored
23
dist/dockerui.js
vendored
|
@ -526,7 +526,8 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt
|
|||
CapAdd: [],
|
||||
CapDrop: [],
|
||||
Devices: [],
|
||||
LxcConf: []
|
||||
LxcConf: [],
|
||||
ExtraHosts: []
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -579,6 +580,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 = {};
|
||||
|
@ -1751,6 +1753,25 @@ angular.module("app/components/startContainer/startcontainer.html", []).run(["$t
|
|||
" </div>\n" +
|
||||
" <hr>\n" +
|
||||
" <div class=\"form-group\">\n" +
|
||||
" <label>ExtraHosts:</label>\n" +
|
||||
" <div ng-repeat=\"entry in config.HostConfig.ExtraHosts\">\n" +
|
||||
" <div class=\"form-inline\">\n" +
|
||||
" <div class=\"form-group\">\n" +
|
||||
" <label class=\"sr-only\">Hostname:</label>\n" +
|
||||
" <input type=\"text\" ng-model=\"entry.host\" class=\"form-control\" placeholder=\"hostname\"/>\n" +
|
||||
" </div>\n" +
|
||||
" <div class=\"form-group\">\n" +
|
||||
" <label class=\"sr-only\">IP Address:</label>\n" +
|
||||
" <input type=\"text\" ng-model=\"entry.ip\" class=\"form-control\" placeholder=\"127.0.0.1\"/>\n" +
|
||||
" </div>\n" +
|
||||
" <div class=\"form-group\">\n" +
|
||||
" <button class=\"btn btn-danger btn-xs form-control\" ng-click=\"rmEntry(config.HostConfig.ExtraHosts, entry)\">Remove</button>\n" +
|
||||
" </div>\n" +
|
||||
" </div>\n" +
|
||||
" </div>\n" +
|
||||
" <button type=\"button\" class=\"btn btn-success btn-sm\" ng-click=\"addEntry(config.HostConfig.ExtraHosts, {host: '', ip: ''})\">Add extra host</button>\n" +
|
||||
" </div>\n" +
|
||||
" <div class=\"form-group\">\n" +
|
||||
" <label>LxcConf:</label>\n" +
|
||||
" <div ng-repeat=\"entry in config.HostConfig.LxcConf\">\n" +
|
||||
" <div class=\"form-inline\">\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue