자산관리 시스템 도커라이징
This commit is contained in:
13
stop_docker_wsl.ps1
Normal file
13
stop_docker_wsl.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
||||
|
||||
$projectWindowsPath = $PSScriptRoot
|
||||
$wslProjectPath = (wsl wslpath $projectWindowsPath).Trim()
|
||||
|
||||
Write-Host "[INFO] Stopping ITAM WSL Docker stack..."
|
||||
wsl sh -lc "cd '$wslProjectPath' && docker compose down --remove-orphans"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "[ERROR] Failed to stop containers." -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host "[OK] WSL Docker stack stopped." -ForegroundColor Green
|
||||
Reference in New Issue
Block a user