mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
Merge pull request #17291 from telday/main
[NO NEW TESTS NEEDED] Fixes port collision issue on use of --publish-all
This commit is contained in:
@ -311,6 +311,8 @@ func ParsePortMapping(portMappings []types.PortMapping, exposePorts map[uint16][
|
||||
return nil, err
|
||||
}
|
||||
portMappings = append(portMappings, p)
|
||||
// Mark this port as used so it doesn't get re-generated
|
||||
allPorts[p.HostPort] = true
|
||||
} else {
|
||||
newProtocols = append(newProtocols, protocol)
|
||||
}
|
||||
|
Reference in New Issue
Block a user