Skip to content

Commit d1cf543

Browse files
author
Lorenzo Dalrio
committed
Avoid exited containers proliferation
When running the `pattern.sh` script multiple times, a lot of podman exited containers will be left on the machine, adding `--rm` parameter to `podman run` makes podman automatically delete the exited containers leaving the machine cleaner.
1 parent 90602fc commit d1cf543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pattern-util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727

2828
# Do not quote the ${KUBECONF_ENV} below, otherwise we will pass '' to podman
2929
# which will be confused
30-
podman run -it \
30+
podman run -it --rm \
3131
--security-opt label=disable \
3232
${KUBECONF_ENV} \
3333
-v "${HOME}":"${HOME}" \

0 commit comments

Comments
 (0)