Merge pull request #628 from mrunalp/annotation_id

container: Add containerID to annotations for the container
This commit is contained in:
Antonio Murdaca 2017-06-24 10:43:03 +02:00 committed by GitHub
commit da7ecdc7f8

View file

@ -532,6 +532,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
}
specgen.AddAnnotation(annotations.Name, containerName)
specgen.AddAnnotation(annotations.ContainerID, containerID)
specgen.AddAnnotation(annotations.SandboxID, sb.id)
specgen.AddAnnotation(annotations.SandboxName, sb.infraContainer.Name())
specgen.AddAnnotation(annotations.ContainerType, annotations.ContainerTypeContainer)