mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
This commit reverts477f7aeandbb19d06, which intended to fix an issue with lingering old images, see #1098. However, as detailed in #1147, this caused severe side effects while working with multiple larger containers. Basically, the prune operation of one container removed images of other containers that are just being created in parallel. Instead of using the podman prune command we can use the meta datain the start script to pinpoint exactly which image(s) to remove, including any downloaded OCI archives when the container instance is removed. Fixes #1147 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
9 lines
505 B
Plaintext
9 lines
505 B
Plaintext
# Start a container instance (%i) and redirect logs to /log/container
|
|
# Give podman enough time to properly shut down the container, kill:30,
|
|
# which is also matched in the container script (podman default is 10!)
|
|
# The pre:script, responsibe for fetching a remote image and calling on
|
|
# 'podman load', must not have a timeout.
|
|
sysv log:prio:local1,tag:%i kill:30 pid:!/run/container:%i.pid \
|
|
pre:0,/usr/sbin/container cleanup:0,/usr/sbin/container \
|
|
[2345] <!> :%i container -n %i -- container %i
|