diff --git a/server/inspect.go b/server/inspect.go index b132c9e6..3eff459d 100644 --- a/server/inspect.go +++ b/server/inspect.go @@ -49,8 +49,11 @@ func (s *Server) StartInfoEndpoints() error { containerID := bone.GetValue(req, "id") ctr := s.GetContainer(containerID) if ctr == nil { - http.Error(w, fmt.Sprintf("container with id: %s not found", containerID), http.StatusNotFound) - return + ctr = s.getInfraContainer(containerID) + if ctr == nil { + http.Error(w, fmt.Sprintf("container with id: %s not found", containerID), http.StatusNotFound) + return + } } ctrState := ctr.State() if ctrState == nil {