mirror of https://github.com/portainer/portainer
fix(container-creation): always rebuild exposed ports (#4024)
parent
cd475a5338
commit
181a6f4553
|
@ -189,6 +189,7 @@ angular.module('portainer.docker').controller('CreateContainerController', [
|
|||
|
||||
function preparePortBindings(config) {
|
||||
const bindings = ContainerHelper.preparePortBindings(config.HostConfig.PortBindings);
|
||||
config.ExposedPorts={};
|
||||
_.forEach(bindings, (_, key) => (config.ExposedPorts[key] = {}));
|
||||
config.HostConfig.PortBindings = bindings;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue