diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-25 11:25:10 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-25 11:25:10 +0100 |
| commit | 812d59e4dd7d7755ceac6ff7286be1d72d0b56b8 (patch) | |
| tree | efde5de1446e7839629900c6332372237b0c416b /openrc/joeac.net | |
| parent | 995c258aa560660eb9fa8fb570075aa6e753e42b (diff) | |
adds --rm to podman-compose up command to remove containers after
stopped
Diffstat (limited to 'openrc/joeac.net')
| -rwxr-xr-x | openrc/joeac.net | 3 |
1 files changed, 2 insertions, 1 deletions
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 $? } |
