Files
podman/pkg
Sascha Grunert 49424fc02a Fix host to container port mapping for simple ranges
This fixes the issue that a simple port range should map to a random
port range from the host to the container, if no host port range is
specified. For example this fails without applying the patch:

```
> podman run -it -p 6000-6066 alpine
Error: cannot listen on the TCP port: listen tcp4 :53: bind: address already in use
```

The issue is that only the first port is randomly chosen and all
following in the range start by 0 and increment. This is now fixed by
tracking the ranges and then incrementing the random port if necessary.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-10-19 11:19:12 +02:00
..
2020-09-29 08:46:44 -07:00
2020-10-05 15:56:44 -07:00
2019-07-23 15:43:40 -04:00
2020-09-22 14:44:09 +02:00
2018-03-27 21:55:33 +00:00
2020-06-15 07:05:56 -04:00
2020-10-04 19:48:13 +08:00
2020-10-05 15:30:37 -07:00
2020-06-15 07:05:56 -04:00
2020-06-29 09:17:55 -05:00
2020-01-13 14:27:02 +01:00
2020-01-14 09:54:48 +01:00
2020-10-05 15:56:44 -07:00
2020-09-11 06:14:25 -04:00