same issue

This commit is contained in:
minicx 2022-12-20 20:10:42 +03:00
parent fa742746bf
commit a436d91a26

View file

@ -208,13 +208,13 @@ export async function startNewTorDocker(
while ((await container.inspect())!.State.Health!.Status != "healthy") {
const state = (await container.inspect())!.State.Health!.Status;
if (progressBar.getProgress() >= timeout) {
await container.kill();
await container.remove({force:true,v:true});
progressBar.update(timeout / 2, { status: "Failed" });
progressBar.stop();
throw new DockerIsBrockenError(`Docker ${container.id} is broken`);
}
if (state == "unhealthy") {
await container.kill();
await container.remove({force:true,v:true});
progressBar.update(timeout / 2, {
status: "Docker is unhealthy...",
});