Merge pull request #816 from mrunalp/inspect_container
server: Add an inspect endpoint for containers
This commit is contained in:
commit
f557020994
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