Skip to content

Commit 230d9f3

Browse files
yasinBursaliclaude
andcommitted
fix: add running container check before purge
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac022a1 commit 230d9f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dream-server/dream-cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ cmd_purge() {
13921392
error "$service_id is still enabled. Run 'dream disable $service_id' first."
13931393
fi
13941394

1395-
# Check if container is still running
1395+
# Check if container is still running (disable may have failed to stop it)
13961396
local _container="${SERVICE_CONTAINERS[$service_id]:-dream-$service_id}"
13971397
if docker ps --format '{{.Names}}' 2>/dev/null | grep -q "^${_container}$"; then
13981398
error "$service_id container is still running. Run 'dream stop $service_id' first."

0 commit comments

Comments
 (0)