server: Add an inspect endpoint for containers

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
Mrunal Patel 2017-08-29 18:12:10 -07:00
parent d634468da6
commit 58bc35ab40
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