diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-04 09:25:47 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-04 09:26:06 +0200 |
| commit | 714a5cf84cf08d53fb76ec42c5bec0296ac245a3 (patch) | |
| tree | 689605cb065029249cc78c2d73302b6022a058ea | |
| parent | e9ac3d457a6b01566cef008dae9ab77059a8652a (diff) | |
Pass --rm to docker create
| -rwxr-xr-x | cdist | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'): |
