Files
ssh-manager/scripts/windows/start-docker.bat
2026-04-16 23:28:26 +08:00

29 lines
552 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
setlocal
set "ROOT=%~dp0..\.."
for %%I in ("%ROOT%") do set "ROOT=%%~fI"
cd /d "%ROOT%"
docker compose version >nul 2>nul
if errorlevel 1 (
echo [ERROR] 未检测到 docker compose请先安装 Docker Desktop
pause
exit /b 1
)
echo 启动 Docker 版 SSH Manager...
docker compose -f docker/docker-compose.yml up -d --build
if errorlevel 1 (
echo [ERROR] Docker 启动失败
pause
exit /b 1
)
echo.
echo 已启动: http://localhost:48080
echo 查看日志: docker compose -f docker/docker-compose.yml logs -f
pause
endlocal