diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-24 12:26:42 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-24 12:26:42 +0200 |
commit | a98b0d886f522ca9620182bd0f1a2f73a905f35a (patch) | |
tree | c7202c3949f2cf1e48209070d0d118e308ed9d6d /src/conf_mode/containers.py | |
parent | dd1f3e3313db14ccf2f34663e113f6383ec1a89f (diff) | |
download | vyos-1x-a98b0d886f522ca9620182bd0f1a2f73a905f35a.tar.gz vyos-1x-a98b0d886f522ca9620182bd0f1a2f73a905f35a.zip |
container: T3769: remove container when marked as "disable"
Diffstat (limited to 'src/conf_mode/containers.py')
-rwxr-xr-x | src/conf_mode/containers.py | 1 |
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'] |