Skip to content

Commit

Permalink
Merge pull request #261 from sameo/topic/annotations
Browse files Browse the repository at this point in the history
container: Store annotations under ocid/annotations
  • Loading branch information
Mrunal Patel committed Dec 12, 2016
2 parents 1291b13 + 70ede1a commit 05b10c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/container_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 05b10c2

Please sign in to comment.