mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(create-container): init ExposedPorts on container creation process (#2933)
This commit is contained in:
parent
96f266adf6
commit
fb69ffa764
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,9 @@ function ($q, $scope, $state, $timeout, $transition$, $filter, Container, Contai
|
|||
|
||||
function preparePortBindings(config) {
|
||||
var bindings = {};
|
||||
if (config.ExposedPorts === undefined) {
|
||||
config.ExposedPorts = {};
|
||||
}
|
||||
config.HostConfig.PortBindings.forEach(function (portBinding) {
|
||||
if (portBinding.containerPort) {
|
||||
var key = portBinding.containerPort + '/' + portBinding.protocol;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue