Skip to content

Commit 8538c40

Browse files
authored
Merge pull request cri-o#834 from mrunalp/inspect_add_sandbox
server: Add sandbox to container info
2 parents 11fbcd2 + ec27f5b commit 8538c40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/inspect.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type ContainerInfo struct {
1818
Annotations map[string]string `json:"annotations"`
1919
LogPath string `json:"log_path"`
2020
Root string `json:"root"`
21+
Sandbox string `json:"sandbox"`
2122
}
2223

2324
// CrioInfo stores information about the crio daemon
@@ -68,6 +69,7 @@ func (s *Server) GetInfoMux() *bone.Mux {
6869
Annotations: ctr.Annotations(),
6970
Root: ctr.MountPoint(),
7071
LogPath: filepath.Dir(ctr.LogPath()),
72+
Sandbox: ctr.Sandbox(),
7173
}
7274
js, err := json.Marshal(ci)
7375
if err != nil {

0 commit comments

Comments
 (0)