Remove containers no matter what unless they are running.

This commit is contained in:
mike12345567 2024-12-16 18:07:05 +00:00
parent 9f645099df
commit 1d949fce2f
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ export async function startContainer(container: GenericContainer) {
// matching container and it has exited, we remove it before carrying on. This
// removes the need to do this removal manually.
const existingContainer = getContainerByName(name)
if (existingContainer?.State === "exited") {
if (existingContainer && existingContainer.State !== "running") {
removeContainer(existingContainer)
}