spiegel_podman/pkg/specgen/generate
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
..
config_linux.go spec: open fuse with --device .*/fuse 2020-10-02 10:12:58 +02:00
config_linux_cgo.go Remove excessive error wrapping 2020-10-05 15:30:37 -07:00
config_linux_nocgo.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container.go Merge pull request #7798 from QiWang19/run-manifest 2020-09-30 18:38:07 +00:00
container_create.go Support max_size logoptions 2020-10-05 17:51:45 -04:00
namespaces.go fix pod creation with "new:" syntax 2020-07-31 18:27:49 +02:00
oci.go rootless: move GetAvailableGids to the rootless pkg 2020-10-02 08:53:54 +02:00
pod_create.go Add support for slirp network for pods 2020-09-25 21:34:23 -04:00
ports.go Fix host to container port mapping for simple ranges 2020-10-19 11:19:12 +02:00
security.go capabilities: always set ambient and inheritable 2020-09-30 15:14:07 +02:00
storage.go Fix incorrect parsing of create/run --volumes-from 2020-09-20 22:49:09 +02:00
validate.go podman: add option --cgroup-conf 2020-08-21 19:06:05 +02:00