forked from mtusi2026/mtusi2026lab3
lab3-4 оценка
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
set "CONTAINER_ID="
|
||||
for /f "delims=" %%i in ('docker compose ps -q api 2^>nul') do (
|
||||
set "CONTAINER_ID=%%i"
|
||||
goto :stop_container
|
||||
)
|
||||
echo No API container found
|
||||
exit /b 1
|
||||
:stop_container
|
||||
echo Stopping container %CONTAINER_ID%
|
||||
docker stop "%CONTAINER_ID%"
|
||||
endlocal
|
||||
Reference in New Issue
Block a user