From 588ce22acbb90fc2d274c72dc3216f37e7103733 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 19 Oct 2024 09:20:16 +0200 Subject: [PATCH] Wait for docker daemon to start --- start.bat | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/start.bat b/start.bat index 377e063..5f710bc 100644 --- a/start.bat +++ b/start.bat @@ -14,6 +14,13 @@ if errorlevel 1 ( goto waitForDocker ) +:waitForDaemon +docker info >nul 2>&1 +if errorlevel 1 ( + timeout /t 1 >nul + goto waitForDaemon +) + echo Starting docker compose cd ".\mediamtx" docker compose up -d