Page MenuHomeVyOS Platform

container: do not allow deleting images which have a container running
Closed, ResolvedPublicFEATURE REQUEST

Description

The current VyOS container image manipulation delete container image allows force removal of container images - even if they still have a container running.

Drop the --force option from the op-mode script.

This will result in:

[email protected]:~$ delete container image 2636705a815a
Error: image used by 6adb0175d47f3c0b07497adafcf174b5273d32a6edc61a7ba4f8ac3fc721599a: image is in use by a container: consider listing external containers and force-removing image

Details

Difficulty level
Easy (less than an hour)
Version
1.4.0-epa1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.Feb 27 2024, 9:20 PM
c-po claimed this task.
c-po triaged this task as Low priority.
c-po created this task.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Version from - to 1.4.0-epa1.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.0-epa1) board.