diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-29 11:48:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 11:48:11 +0100 |
commit | beb120958f0a6556db30a2aaf8dcd997506b2035 (patch) | |
tree | 68a101eb794e44bc364158762568b36f6d703c17 /src | |
parent | 9dba039cc9cfb3ce945a932e6499df5ba22a3744 (diff) | |
parent | d3361ea09d09827b72f37f386cc1c0fac3ceaef1 (diff) | |
download | vyos-1x-beb120958f0a6556db30a2aaf8dcd997506b2035.tar.gz vyos-1x-beb120958f0a6556db30a2aaf8dcd997506b2035.zip |
Merge pull request #3058 from vyos/mergify/bp/sagitta/pr-3053
container: T6074: do not allow deleting images which have a container running (backport #3053)
Diffstat (limited to 'src')
-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) |