mirror of
https://github.com/docker/cli.git
synced 2026-01-26 15:41:42 +03:00
This adds an event loop for running a GC cleanup for exec command references that are on the daemon. These cannot be cleaned up immediately because processes may need to get the exit status of the exec command but it should not grow out of bounds. The loop is set to a default 5 minute interval to perform cleanup. It should be safe to perform this cleanup because unless the clients are remembering the exec id of the process they launched they can query for the status and see that it has exited. If they don't save the exec id they will have to do an inspect on the container for all exec instances and anything that is not live inside that container will not be returned in the container inspect. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Upstream-commit: 5f017bba48e5c763157e1b35a5edea64cc41fc6a Component: engine