spiegel_podman/pkg/specgen
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
..
generate Do not store the exit command in container config 2021-11-18 20:28:03 +01:00
config_unsupported.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
container_validate.go bump go module to v3 2021-02-22 09:03:51 +01:00
namespaces.go Add support for pod inside of user namespace. 2021-08-09 15:17:22 -04:00
pod_validate.go --infra-name command line argument 2021-07-15 21:27:51 -03:00
podspecgen.go Fix swagger definition for the new mac address type 2021-11-05 19:25:40 +01:00
specgen.go Merge pull request #12100 from rhatdan/env 2021-11-16 16:27:34 +01:00
specgen_test.go fix test 2021-10-11 17:41:58 +08:00
volumes.go libpod/option.go remove error stutter from wrap/wraf 2021-08-17 16:14:02 +05:30