HookState adhears to OCI

Signed-off-by: George Lestaris <glestaris@pivotal.io>
Signed-off-by: Ed King <eking@pivotal.io>
This commit is contained in:
George Lestaris
2016-04-06 16:57:59 +01:00
committed by Ed King
parent 3f4f4420fd
commit f7ae27bfb7
10 changed files with 92 additions and 32 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"time"
"github.com/codegangsta/cli"
"github.com/opencontainers/runc/libcontainer/utils"
)
// cState represents the platform agnostic pieces relating to a running
@@ -57,7 +58,7 @@ instance of a container.`,
ID: state.BaseState.ID,
InitProcessPid: state.BaseState.InitProcessPid,
Status: containerStatus.String(),
Bundle: searchLabels(state.Config.Labels, "bundle"),
Bundle: utils.SearchLabels(state.Config.Labels, "bundle"),
Rootfs: state.BaseState.Config.Rootfs,
Created: state.BaseState.Created}
data, err := json.MarshalIndent(cs, "", " ")