From 4b30f380705f33a7713210b9c1df385510a90036 Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Mon, 28 Nov 2016 11:35:16 +0800 Subject: [PATCH] Add root field in `State` `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 --- specs-go/state.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specs-go/state.go b/specs-go/state.go index ad31b893b..4b5461132 100644 --- a/specs-go/state.go +++ b/specs-go/state.go @@ -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.