inspect: Add cgroup driver to info output

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-09-05 15:24:39 -07:00
parent 8538c4067a
commit 923f50b0f3

View file

@ -25,6 +25,7 @@ type ContainerInfo struct {
type CrioInfo struct {
StorageDriver string `json:"storage_driver"`
StorageRoot string `json:"storage_root"`
CgroupDriver string `json:"cgroup_driver"`
}
// GetInfoMux returns the mux used to serve info requests
@ -35,6 +36,7 @@ func (s *Server) GetInfoMux() *bone.Mux {
ci := CrioInfo{
StorageDriver: s.config.Config.Storage,
StorageRoot: s.config.Config.Root,
CgroupDriver: s.config.Config.CgroupManager,
}
js, err := json.Marshal(ci)
if err != nil {