mirror of
https://github.com/apple/container.git
synced 2026-07-12 12:37:02 +00:00
24f6b747f1
This PR reaps already running containers with auto remove flag on container system start. Container API server shutdown ideally should stop every running container, and reap the containers with auto remove flag. However, crash or unexpected exit of API server leaves the containers running. In such case, next system start should stop running containers (i.e., launchd services) and reap the containers with auto remove flag. ## Type of Change - [X] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Motivation and Context Preserve the system to be in a consistent state after unexpected failure. ## Testing - [X] Tested locally - [ ] Added/updated tests - [ ] Added/updated docs --------- Co-authored-by: Raj <realrajaryan@gmail.com>