This commit is contained in:
2026-10-23 19:30:08 +03:00
parent 0ab3a341aa
commit 7e0595d211
26 changed files with 1237 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
@echo off
if "%TARGET_INSTANCE_ID%"=="" (
echo TARGET_INSTANCE_ID is not set
exit /b 1
)
for /f "tokens=*" %%i in ('docker ps -q --filter "name=lab3-api"') do (
for /f "tokens=*" %%h in ('docker inspect -f "{{.Config.Hostname}}" %%i') do (
if "%%h"=="%TARGET_INSTANCE_ID%" (
echo Stopping container %%i
docker stop %%i
exit /b 0
)
)
)
echo Container not found
exit /b 1