Bug: Deleting an app does not stop/remove its Docker container #2
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
In
internal/handlers/app.go,HandleAppDelete()only callsapplication.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.