inspect: Add cgroup driver to info output
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
8538c4067a
commit
923f50b0f3
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue