Skip to content

Commit 48deee3

Browse files
authored
fix: RuntimeError Cannot handle container in state created. (#116)
1 parent 1b67880 commit 48deee3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pytest_databases/_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _stop_all_containers(client: DockerClient) -> None:
6969
try:
7070
if container.status == "running":
7171
container.kill()
72-
elif container.status in {"stopped", "dead"}:
72+
elif container.status in {"created", "stopped", "dead"}:
7373
container.remove()
7474
elif container.status == "removing":
7575
continue

0 commit comments

Comments
 (0)