Skip to content

Commit ec27f5b

Browse files
committed
server: Add sandbox to container info
Signed-off-by: Mrunal Patel <[email protected]>
1 parent 35ada86 commit ec27f5b

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
@@ -65,6 +66,7 @@ func (s *Server) GetInfoMux() *bone.Mux {
6566
Annotations: ctr.Annotations(),
6667
Root: ctr.MountPoint(),
6768
LogPath: filepath.Dir(ctr.LogPath()),
69+
Sandbox: ctr.Sandbox(),
6870
}
6971
js, err := json.Marshal(ci)
7072
if err != nil {

0 commit comments

Comments
 (0)