server: Add an inspect endpoint for containers
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
parent
d634468da6
commit
58bc35ab40
11 changed files with 876 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue