Skip to content

Instantly share code, notes, and snippets.

@FlorianOtel
Last active January 11, 2018 12:12
Show Gist options
  • Save FlorianOtel/73707cd372309ca0d566daabd9120e52 to your computer and use it in GitHub Desktop.
Save FlorianOtel/73707cd372309ca0d566daabd9120e52 to your computer and use it in GitHub Desktop.
### The hook output does NOT contain the Annotations
I0111 11:31:52.572042 617 runc.go:41] Container State: specs.State{Version:"1.0.0", ID:"ubuntu_16.04", Status:"", Pid:603, Bundle:"/mnt/gw-disk/runc/OCI-bundles/v1.0.0/ubuntu_16.04", Annotations:map[string]string(nil)}
I0111 11:31:52.572086 617 runc.go:24] Container state as hook data: {
"ociVersion": "1.0.0",
"id": "ubuntu_16.04",
"status": "",
"pid": 603,
"bundle": "/mnt/gw-disk/runc/OCI-bundles/v1.0.0/ubuntu_16.04"
}
### runc state does list the correct Annotations
shell# runc state ubuntu_16.04
{
"ociVersion": "1.0.0",
"id": "ubuntu_16.04",
"pid": 603,
"status": "running",
"bundle": "/mnt/gw-disk/runc/OCI-bundles/v1.0.0/ubuntu_16.04",
"rootfs": "/mnt/gw-disk/runc/OCI-bundles/v1.0.0/ubuntu_16.04/rootfs",
"created": "2018-01-11T11:31:52.655018923Z",
"annotations": {
"io.nuage.Domain": "oci-containers-domain",
"io.nuage.Enterprise": "runc-crio-test",
"io.nuage.Subnet": "Subnet 0",
"io.nuage.Zone": "Zone 0"
},
"owner": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment