Remove containers no matter what unless they are running.
This commit is contained in:
parent
9f645099df
commit
1d949fce2f
|
@ -160,7 +160,7 @@ export async function startContainer(container: GenericContainer) {
|
||||||
// matching container and it has exited, we remove it before carrying on. This
|
// matching container and it has exited, we remove it before carrying on. This
|
||||||
// removes the need to do this removal manually.
|
// removes the need to do this removal manually.
|
||||||
const existingContainer = getContainerByName(name)
|
const existingContainer = getContainerByName(name)
|
||||||
if (existingContainer?.State === "exited") {
|
if (existingContainer && existingContainer.State !== "running") {
|
||||||
removeContainer(existingContainer)
|
removeContainer(existingContainer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue