spiegel_podman/pkg/specgen/generate
Paul Holzinger 0dae50f1d3
Do not store the exit command in container config
There is a problem with creating and storing the exit command when the
container was created. It only contains the options the container was
created with but NOT the options the container is started with. One
example would be a CNI network config. If I start a container once, then
change the cni config dir with `--cni-config-dir` ans start it a second
time it will start successfully. However the exit command still contains
the wrong `--cni-config-dir` because it was not updated.

To fix this we do not want to store the exit command at all. Instead we
create it every time the conmon process for the container is startet.
This guarantees us that the container cleanup process is startet with
the correct settings.

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-11-18 20:28:03 +01:00
..
kube Add support to play kube for --log-opt 2021-10-25 11:40:42 -04:00
config_linux.go Pod Device Support 2021-09-20 23:22:43 -04:00
config_linux_cgo.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
config_linux_nocgo.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
config_linux_test.go Add filepath glob support to --security-opt unmask 2021-05-04 14:40:43 -04:00
container.go Add --unsetenv & --unsetenv-all to remove def environment variables 2021-11-15 15:10:12 -05:00
container_create.go Do not store the exit command in container config 2021-11-18 20:28:03 +01:00
namespaces.go InfraContainer Rework 2021-08-26 16:05:16 -04:00
oci.go Add --unsetenv & --unsetenv-all to remove def environment variables 2021-11-15 15:10:12 -05:00
pod_create.go infra container: replace pause with catatonit 2021-11-15 12:53:25 +01:00
ports.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
ports_bench_test.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
ports_test.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
security.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
storage.go volumes: be more tolerant and fix infinite loop 2021-10-28 16:37:33 +02:00
validate.go Allow a value of -1 to set unlimited pids limit 2021-09-29 16:22:55 -04:00