summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-28 17:08:36 +0100
committerGitHub <noreply@github.com>2024-02-28 17:08:36 +0100
commite50b14036fb2ca340a8030f9cde42c4926c241bd (patch)
tree83722ce993a2ef84d6df28b485f8f9f3cb51a501
parent8b87836b371fdddb595ad3faf8a91a64f07c2bfb (diff)
parentbfc065f2c4dcfc969981453e49b8156330674006 (diff)
downloadvyos-1x-e50b14036fb2ca340a8030f9cde42c4926c241bd.tar.gz
vyos-1x-e50b14036fb2ca340a8030f9cde42c4926c241bd.zip
Merge pull request #3053 from c-po/container-t6074
container: T6074: do not allow deleting images which have a container running
-rwxr-xr-xsrc/op_mode/container.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/container.py b/src/op_mode/container.py
index dcbb4dc55..d29af8821 100755
--- a/src/op_mode/container.py
+++ b/src/op_mode/container.py
@@ -75,7 +75,7 @@ def delete_image(name: str):
if not name: return
# replace newline with whitespace
name = name.replace('\n', ' ')
- rc, output = rc_cmd(f'podman image rm --force {name}')
+ rc, output = rc_cmd(f'podman image rm {name}')
if rc != 0:
raise vyos.opmode.InternalError(output)