mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
@@ -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, "", " ")
|
||||
|
||||
Reference in New Issue
Block a user