Merge pull request #816 from mrunalp/inspect_container

server: Add an inspect endpoint for containers
This commit is contained in:
Mrunal Patel 2017-08-30 19:08:10 -07:00 committed by GitHub
commit f557020994
11 changed files with 876 additions and 0 deletions

View file

@ -412,6 +412,13 @@ func main() {
service.StartExitMonitor()
}()
go func() {
err := service.StartInspectEndpoint()
if err != nil {
logrus.Fatalf("Failed to start container inspect endpoint: %v", err)
}
}()
err = s.Serve(lis)
if graceful && strings.Contains(strings.ToLower(err.Error()), "use of closed network connection") {
err = nil