Skip to content

wasp-app-runner: Docker containers left running after hard process.exit() #3627

@cprecioso

Description

@cprecioso

Problem

The wasp-app-runner package frequently leaves Docker containers running after the process terminates, requiring manual cleanup with docker rm -f <container-name>.

Root Cause

The codebase has multiple hard process.exit() calls throughout that prevent proper cleanup.

When process.exit() is called, the ChildProcessManager cleanup handlers may not have sufficient time to run, and importantly, Docker container cleanup is not handled at all. While containers are started with the --rm flag, this only works if the container exits gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions