Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unconditionally remove conmon files before starting
We've been seeing a lot of issues (ref: containers#4061, but there are others) where Podman hiccups on trying to start a container, because some temporary files have been retained and Conmon will not overwrite them. If we're calling start() we can safely assume that we really want those files gone so the container starts without error, so invoke the cleanup routine. It's relatively cheap (four file removes) so it shouldn't hurt us that much. Also contains a small simplification to the removeConmonFiles logic - we don't need to stat-then-remove when ignoring ENOENT is fine. Signed-off-by: Matthew Heon <[email protected]>
- Loading branch information