Spaces:
Sleeping
Sleeping
File size: 513 Bytes
05f272a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Stop and remove the FinAlly Docker container. Does not touch db/ data.
# Requires: PowerShell, Docker Desktop. Tested on Windows.
# Usage: scripts\stop.ps1
$ErrorActionPreference = "Stop"
$ContainerName = "finally"
$existing = docker ps -a --filter "name=^/$ContainerName`$" --format "{{.Names}}"
if ($existing -eq $ContainerName) {
docker stop $ContainerName 2>$null | Out-Null
docker rm $ContainerName | Out-Null
Write-Host "FinAlly stopped."
} else {
Write-Host "FinAlly is not running."
}
|