diff --git a/daemon/server/router/container/inspect.go b/daemon/server/router/container/inspect.go index 15ee82b5db..73c7f8a12d 100644 --- a/daemon/server/router/container/inspect.go +++ b/daemon/server/router/container/inspect.go @@ -81,5 +81,8 @@ func (c *containerRouter) getContainersByName(ctx context.Context, w http.Respon } } + if ctr.Config == nil { + ctr.Config = &container.Config{} + } return httputils.WriteJSON(w, http.StatusOK, compat.Wrap(ctr, wrapOpts...)) }