Skip to content

Commit

Permalink
Add root field in State
Browse files Browse the repository at this point in the history
`root` is path to the container's rootfs which can be useful information
to hook, and the official sample runtime implementation--runc--has
already added this field as payload to hook, we should add this to the
spec.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
  • Loading branch information
WeiZhang555 committed Nov 28, 2016
1 parent 9ce258d commit 4b30f38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specs-go/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ type State struct {
Status string `json:"status"`
// Pid is the process ID for the container process.
Pid int `json:"pid"`
// Root is the path to the container's rootfs directory
Root string `json:"root"`
// BundlePath is the path to the container's bundle directory.
BundlePath string `json:"bundlePath"`
// Annotations are the annotations associated with the container.
Expand Down

0 comments on commit 4b30f38

Please sign in to comment.