mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(container-creation): always rebuild exposed ports (#4024)
This commit is contained in:
parent
cd475a5338
commit
181a6f4553
1 changed files with 1 additions and 0 deletions
|
@ -189,6 +189,7 @@ angular.module('portainer.docker').controller('CreateContainerController', [
|
||||||
|
|
||||||
function preparePortBindings(config) {
|
function preparePortBindings(config) {
|
||||||
const bindings = ContainerHelper.preparePortBindings(config.HostConfig.PortBindings);
|
const bindings = ContainerHelper.preparePortBindings(config.HostConfig.PortBindings);
|
||||||
|
config.ExposedPorts={};
|
||||||
_.forEach(bindings, (_, key) => (config.ExposedPorts[key] = {}));
|
_.forEach(bindings, (_, key) => (config.ExposedPorts[key] = {}));
|
||||||
config.HostConfig.PortBindings = bindings;
|
config.HostConfig.PortBindings = bindings;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue