From 70ede1a5fec08ef971458ac55012deeb6ec43699 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Mon, 12 Dec 2016 18:55:34 +0100 Subject: [PATCH] container: Store annotations under ocid/annotations Signed-off-by: Samuel Ortiz --- server/container_create.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/container_create.go b/server/container_create.go index 6c96df93..5445a3ab 100644 --- a/server/container_create.go +++ b/server/container_create.go @@ -316,6 +316,12 @@ func (s *Server) createSandboxContainer(containerID string, containerName string } specgen.AddAnnotation("ocid/labels", string(labelsJSON)) + annotationsJSON, err := json.Marshal(annotations) + if err != nil { + return nil, err + } + specgen.AddAnnotation("ocid/annotations", string(annotationsJSON)) + if err = s.setupSeccomp(&specgen, containerName, sb.annotations); err != nil { return nil, err }