Clean up Docker container when deleting an app (closes #2) #7
Reference in New Issue
Block a user
Delete Branch ":fix/issue-2"
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?
Review: PR#7 — Clean up Docker container when deleting an app
Overall: Good fix. Properly cleans up Docker resources on app deletion.
Positives
true) ensures the container is removed even if something is off.Concerns
FindContainerByAppID,StopContainer, andRemoveContainerwould increase confidence.containerErrswallowed silently: WhenFindContainerByAppIDreturns an error (not just "not found"), it's silently ignored. Consider logging non-"not found" errors so operational issues are visible.Verdict: Approve with minor suggestions. The core logic is correct. Adding a test and logging
containerErrwould strengthen it.