Skip to content

Quadlet Pod: oneshot setup container exits with status=15/TERM #26453

Discussion options

You must be logged in to vote

Solution

There is a misleading statement in the podman-pod-create documentation. Right now it reads as follows:

--exit-policy=continue | stop
Set the exit policy of the pod when the last container exits. Supported policies are:

Exit Policy Description
continue The pod continues running, by keeping its infra container alive, when the last container exits. Used by default.
stop The pod (including its infra container) is stopped when the last container exits. Used in kube play.

I highlighted the last bit because quadlets also seem to follow this rule instead of the default. Fixing the above exittest.pod file as follows fixes this issue:

# exittest.pod
[Pod]
PodName=exittest
Servi…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Luap99
Comment options

@nbspsemicolon
Comment options

@Luap99
Comment options

@nbspsemicolon
Comment options

Answer selected by nbspsemicolon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants