spiegel_podman/cmd/podman/common
Matthew Heon b754ba9753 Ports given only by number should have random host port
In Podman 1.9.3, `podman run -p 80` would assign port 80 in the
container to a random port on the host. In Podman 2.0 and up, it
assigned Port 80 in the container to Port 80 on the host. This is
an easy fix, fortunately - just need to remove the bit that
assumed host port, if not given, should be set to container port.

We also had a test for the bad behavior, so fix it to test for
the correct way of doing things.

Fixes #7947

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-10-08 09:16:10 -04:00
..
create.go Attempt to turn on some more remote tests 2020-10-07 10:19:08 -04:00
create_opts.go Supports import&run--signature-policy 2020-09-15 16:09:33 -04:00
createparse.go --rm option shold conflicts with --restart 2020-10-02 21:57:37 +08:00
default.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
netflags.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
ports.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
specgen.go Support max_size logoptions 2020-10-05 17:51:45 -04:00
util.go Ports given only by number should have random host port 2020-10-08 09:16:10 -04:00
volumes.go --mount: support arbitrary mount-argument order 2020-09-16 14:18:40 +02:00