Remove anonymous volumes when removing containers (#5977)

* Remove anonymous volumes when removing containers

* Add tests for docker.run_command()
This commit is contained in:
Felipe Santos
2025-06-30 08:31:41 -03:00
committed by GitHub
parent 779f47e25d
commit b8852872fe
7 changed files with 148 additions and 9 deletions

View File

@@ -363,7 +363,7 @@ async def test_load_with_incorrect_image(
await plugin.load()
container.remove.assert_called_once_with(force=True)
container.remove.assert_called_once_with(force=True, v=True)
assert coresys.docker.images.remove.call_args_list[0].kwargs == {
"image": f"{old_image}:latest",
"force": True,