spiegel_podman/cmd/podman/containers
Paul Holzinger d10bc9f045 fix pod creation with "new:" syntax followup + allow hostname
Fixes: 4c75fe3f70 ("fix pod creation with "new:" syntax")

Commit 4c75fe3f70 passes all net options to the pod but forgot
to unset the options for the container creation. This leads to
erros when using flags like `--ip` since we tried setting
the ip on the pod and container which obviously fails.

I didn't notice the bug because we don't throw an error when
specifing port bindings on a container which joins the pods
network namespace. (#7373)

Also allow the use of `--hostname` and pass that option to the
pod and unset it for the container. The container has to use
the pods hostname anyway. This would error otherwise.

Added tests to prevent regression.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-08-20 16:28:45 +02:00
..
attach.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
checkpoint.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
cleanup.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
commit.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
cp.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
create.go fix pod creation with "new:" syntax followup + allow hostname 2020-08-20 16:28:45 +02:00
diff.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
exec.go validate fds --preserve-fds 2020-08-04 15:09:17 -04:00
exists.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
export.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
init.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
inspect.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
kill.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
list.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
logs.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
mount.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pause.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
port.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
prune.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
ps.go Add the Status field in the ps --format=json 2020-08-11 13:47:54 +08:00
restart.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
restore.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
rm.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run.go Merge pull request #7125 from QiWang19/fd-validate 2020-08-05 09:37:59 +02:00
runlabel.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
start.go implement the exitcode when start a container with attach 2020-08-03 21:40:06 +08:00
stats.go fix swapped mem_usage/percent fields 2020-07-30 22:36:59 +02:00
stop.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
top.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
unmount.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
unpause.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
utils.go Podman V2 birth 2020-04-16 15:53:58 -05:00
wait.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00