Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't exit on container destroy events
Fixes docker#8747 When the event is a container destroy, calling ContainerInspect returns an error, because the container no longer exists. This causes both `docker-compose up` and `docker-compose logs -f` to exit when removing a stopped container. This container has already emitted its die event, and has already been cleanup up. I believe all that needs doing in this case is to ignore the error. Another approach might be to check for the destroy event before calling ContainerInspect. Signed-off-by: Stephen Thirlwall <[email protected]>
- Loading branch information