ContainerReaper Class
A watchdog container that removes the containers, images and volumes of the current session when this process goes away, including when it is killed and cannot run its own cleanup.
public sealed class ContainerReaper : IAsyncDisposableRemarks
Dispose the instance to stop the watchdog. A clean disposal removes the watchdog before it can remove anything, so the resources the process still owns are left to their own disposal.
- Implements
Properties
| Name | Description |
|---|---|
| ContainerId | Gets the id of the watchdog container. |
| SessionId | Gets the session the watchdog removes the resources of. |
ContainerId
ContainerReaper.csSessionId
ContainerReaper.csMethods
| Name | Description |
|---|---|
| DisposeAsync() | Stops the watchdog. The watchdog container is removed first, so it cannot remove the resources that are still in use. |