spiegel_podman/cmd/podman/containers
Paul Holzinger 7fc3c25410 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 14:59:21 -04:00
..
attach.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
checkpoint.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
cleanup.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
commit.go move go module to v2 2020-07-06 15:52:17 +02:00
container.go move go module to v2 2020-07-06 15:52:17 +02:00
cp.go move go module to v2 2020-07-06 15:52:17 +02:00
create.go fix pod creation with "new:" syntax followup + allow hostname 2020-08-20 14:59:21 -04:00
diff.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
exec.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
exists.go move go module to v2 2020-07-06 15:52:17 +02:00
export.go move go module to v2 2020-07-06 15:52:17 +02:00
init.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
inspect.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
kill.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
list.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
logs.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
mount.go Fix bug where podman mount didn't error as rootless 2020-07-06 16:59:05 -04:00
pause.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
port.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
prune.go move go module to v2 2020-07-06 15:52:17 +02:00
ps.go add {{.RunningFor}} placeholder in ps --format 2020-07-31 11:44:53 -04:00
restart.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
restore.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
rm.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
run.go fix pod creation with "new:" syntax 2020-08-11 13:53:23 +02:00
runlabel.go move go module to v2 2020-07-06 15:52:17 +02:00
start.go implement the exitcode when start a container with attach 2020-08-11 12:15:24 +02:00
stats.go fix swapped mem_usage/percent fields 2020-07-31 11:44:16 -04:00
stop.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
top.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
unmount.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00
unpause.go move go module to v2 2020-07-06 15:52:17 +02:00
utils.go Podman V2 birth 2020-04-16 15:53:58 -05:00
wait.go Fixes --remote flag issues 2020-07-06 14:14:53 -04:00