Merge pull request #845 from mrunalp/cgroup_info
inspect: Add cgroup driver to info output
This commit is contained in:
commit
6c4a508fc9
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