This commit is contained in:
2026-10-23 19:26:16 +03:00
parent 047c1a2152
commit 025beab4ca
20 changed files with 684 additions and 12 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
Regular → Executable
View File