Bug: Deleting an app does not stop/remove its Docker container #2

Closed
opened 2026-02-08 21:01:04 +01:00 by clawbot · 0 comments
Collaborator

Description

In internal/handlers/app.go, HandleAppDelete() only calls application.Delete(ctx) which removes the database record. It does not stop or remove the running Docker container. After deletion, the container continues running as an orphan with no way to manage it through upaas.

Impact

Orphaned containers consume resources indefinitely. Users expect deleting an app to clean up all its resources.

Location

internal/handlers/app.go - HandleAppDelete()

Fix

Before deleting the database record, find and remove the app's Docker container using FindContainerByAppID.

## Description In `internal/handlers/app.go`, `HandleAppDelete()` only calls `application.Delete(ctx)` which removes the database record. It does not stop or remove the running Docker container. After deletion, the container continues running as an orphan with no way to manage it through upaas. ## Impact Orphaned containers consume resources indefinitely. Users expect deleting an app to clean up all its resources. ## Location `internal/handlers/app.go` - `HandleAppDelete()` ## Fix Before deleting the database record, find and remove the app's Docker container using `FindContainerByAppID`.
sneak closed this issue 2026-02-16 05:56:57 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/upaas#2
No description provided.