diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-02-28 17:08:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 17:08:36 +0100 |
commit | e50b14036fb2ca340a8030f9cde42c4926c241bd (patch) | |
tree | 83722ce993a2ef84d6df28b485f8f9f3cb51a501 | |
parent | 8b87836b371fdddb595ad3faf8a91a64f07c2bfb (diff) | |
parent | bfc065f2c4dcfc969981453e49b8156330674006 (diff) | |
download | vyos-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-x | src/op_mode/container.py | 2 |
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) |