From 812d59e4dd7d7755ceac6ff7286be1d72d0b56b8 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 25 Jun 2026 11:25:10 +0100 Subject: [PATCH] adds --rm to podman-compose up command to remove containers after stopped --- openrc/joeac.net | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openrc/joeac.net b/openrc/joeac.net index 83e9566..bc536ee 100755 --- a/openrc/joeac.net +++ b/openrc/joeac.net @@ -10,6 +10,7 @@ DOCKER_COMPOSE_UP_ARGS=${DOCKER_COMPOSE_UP_ARGS-"--no-build --no-recreate --no-d : ${COMPOSEFILE:="${SRCDIR}/compose.yml"} : ${MAKEFILE:="${SRCDIR}/Makefile"} COMPOSECMD="/usr/bin/podman-compose" +COMPOSESTARTARGS="--podman-run-args='--rm'" export COMPOSE_HTTP_TIMEOUT=300 description="Manage dockerservices defined in ${COMPOSEFILE}" @@ -32,7 +33,7 @@ configtest() { start() { configtest || return 1 ebegin "Starting ${SVCNAME}" - "${COMPOSECMD}" -f "${COMPOSEFILE}" up -d ${DOCKER_COMPOSE_UP_ARGS} + "${COMPOSECMD}" "${COMPOSESTARTARGS}" -f "${COMPOSEFILE}" up -d ${DOCKER_COMPOSE_UP_ARGS} eend $? }