podman/pkg/specgen/generate
Matthew Heon 3601b96600 Allow empty host port in --publish flag
I didn't believe that this was actually legal, but it looks like
it is. And, unlike our previous understanding (host port being
empty means just use container port), empty host port actually
carries the same meaning as `--expose` + `--publish-all` (that
is, assign a random host port to the given container port). This
requires a significant rework of our port handling code to handle
this new case. I don't foresee this being commonly used, so I
optimized having a fixed port number as fast path, which this
random assignment code running after the main port handling code
only if necessary.

Fixes #6806

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-06-29 09:33:43 -04:00
..
config_linux.go specgen: fix segfault 2020-05-27 14:52:17 -04:00
config_linux_cgo.go podman: add support for --rootfs 2020-04-24 12:56:20 +02:00
config_linux_nocgo.go Attempt to turn on build_without_cgo tests 2020-05-22 12:56:19 -04:00
container.go Re-add resource limit warnings to Specgen 2020-06-16 17:32:01 -04:00
container_create.go Set syslog for exit commands on log-level=debug 2020-06-24 13:09:34 -04:00
namespaces.go Don't ignore --user flag in rootless --userns keepid 2020-06-17 17:13:58 -04:00
oci.go specgen: fix order for setting rlimits 2020-06-26 11:17:32 +02:00
pod_create.go pod create: add `--infra-conmon-pidfile` 2020-06-11 11:01:13 +02:00
ports.go Allow empty host port in --publish flag 2020-06-29 09:33:43 -04:00
security.go Handle dropping capabilties correctly when running as non root user 2020-06-17 17:20:53 -04:00
storage.go Fix --init and --init-path 2020-06-16 17:37:39 +00:00
validate.go Re-add resource limit warnings to Specgen 2020-06-16 17:32:01 -04:00