summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-24 12:26:42 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-24 12:26:42 +0200
commita98b0d886f522ca9620182bd0f1a2f73a905f35a (patch)
treec7202c3949f2cf1e48209070d0d118e308ed9d6d /src/conf_mode
parentdd1f3e3313db14ccf2f34663e113f6383ec1a89f (diff)
downloadvyos-1x-a98b0d886f522ca9620182bd0f1a2f73a905f35a.tar.gz
vyos-1x-a98b0d886f522ca9620182bd0f1a2f73a905f35a.zip
container: T3769: remove container when marked as "disable"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/containers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/containers.py b/src/conf_mode/containers.py
index 85fc14015..32320a4b2 100755
--- a/src/conf_mode/containers.py
+++ b/src/conf_mode/containers.py
@@ -237,6 +237,7 @@ def apply(container):
tmp = _cmd('podman ps -a --format "{{.Names}}"')
if name in tmp:
_cmd(f'podman stop {name}')
+ _cmd(f'podman rm --force {name}')
continue
memory = container_config['memory']