From 5dbd35060ae077e7adcfb75a6f7d91496cfa3abd Mon Sep 17 00:00:00 2001 From: totti4ever <49901208+totti4ever@users.noreply.github.com> Date: Sat, 31 Oct 2020 19:35:35 +0100 Subject: [PATCH] Fix ocrmypdf containers not being removed after a run before they would kind of lying around and pile up after a couple of processed items --- docker/joex-ocrmypdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/joex-ocrmypdf.sh b/docker/joex-ocrmypdf.sh index cce97a98..d8598d61 100644 --- a/docker/joex-ocrmypdf.sh +++ b/docker/joex-ocrmypdf.sh @@ -3,4 +3,4 @@ if [ ! "$1" == "--version" ]; then echo "Using docker image for ocrmypdf (Version: $OCRMYPDF_VERSION)" fi -docker run -v '/tmp/docspell-convert:/tmp/docspell-convert' -e "TZ=$TZ" jbarlow83/ocrmypdf:$OCRMYPDF_VERSION $@ +docker run --rm -v '/tmp/docspell-convert:/tmp/docspell-convert' -e "TZ=$TZ" jbarlow83/ocrmypdf:$OCRMYPDF_VERSION $@