]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: clean up shell containers on exit 32282/head
authorSage Weil <sage@redhat.com>
Mon, 16 Dec 2019 22:05:26 +0000 (16:05 -0600)
committerSage Weil <sage@redhat.com>
Tue, 17 Dec 2019 13:02:42 +0000 (07:02 -0600)
The run_cmd() was already passing --rm; do it for shell_cmd too so that
we don't leave behind a mess from shell commands, ceph-volume, etc.

Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm

index 0f727af1bbeec5ecb5e4e5f3021baf3c1383e9be..8083baa90a2233b153d2a79398a8052e5257ac87 100755 (executable)
@@ -1126,6 +1126,7 @@ class CephContainer:
         return [
             str(container_path),
             'run',
+            '--rm',
             '--net=host',
         ] + self.container_args + envs + vols + [
             '--entrypoint', cmd[0],