summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-04 09:25:47 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-04 09:26:06 +0200
commit714a5cf84cf08d53fb76ec42c5bec0296ac245a3 (patch)
tree689605cb065029249cc78c2d73302b6022a058ea
parente9ac3d457a6b01566cef008dae9ab77059a8652a (diff)
Pass --rm to docker create
-rwxr-xr-xcdist3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdist b/cdist
index f814ba8..0e1df9f 100755
--- a/cdist
+++ b/cdist
@@ -544,7 +544,8 @@ class DockerTarget(Target):
if self.privileged:
opts += '--privileged=true '
if self.ccache:
- opts += "-e CCACHE_DIR=/ccache/%s-%d --mount source=ccache,target=/ccache" % (self.image, os.getuid())
+ opts += "-e CCACHE_DIR=/ccache/%s-%d --mount source=ccache,target=/ccache " % (self.image, os.getuid())
+ opts += "--rm "
tag = self.image
if config.has('docker_hub_repository'):