Merge pull request #261 from sameo/topic/annotations
container: Store annotations under ocid/annotations
This commit is contained in:
commit
05b10c27ca
1 changed files with 6 additions and 0 deletions
|
@ -316,6 +316,12 @@ func (s *Server) createSandboxContainer(containerID string, containerName string
|
||||||
}
|
}
|
||||||
specgen.AddAnnotation("ocid/labels", string(labelsJSON))
|
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 {
|
if err = s.setupSeccomp(&specgen, containerName, sb.annotations); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue