Lab3 - оценка 5

This commit is contained in:
2026-10-16 01:30:10 +03:00
parent 0ab3a341aa
commit da019afaa0
126 changed files with 11325 additions and 20 deletions
+10
View File
@@ -0,0 +1,10 @@
@echo off
setlocal
cd /d "%~dp0.."
if "%TARGET_INSTANCE_ID%"=="" exit /b 2
echo %TARGET_INSTANCE_ID%| findstr /r /x "[0-9a-f][0-9a-f]*" >nul || exit /b 2
set CID=
for /f %%i in ('docker ps -q --filter "id=%TARGET_INSTANCE_ID%" --filter "label=com.docker.compose.project=mtusi-lab3" --filter "label=com.docker.compose.service=api"') do set CID=%%i
if "%CID%"=="" exit /b 3
docker stop -t 15 %CID% >nul || exit /b 1
echo stopped api container %CID%