From 975347b8748d843375f0e3ccbcca3e7334209317 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Fri, 23 Jun 2017 09:31:13 -0700 Subject: [PATCH] container: Add containerID to annotations for the container Signed-off-by: Mrunal Patel --- server/container_create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/container_create.go b/server/container_create.go index 74fbdfee..1acea7e2 100644 --- a/server/container_create.go +++ b/server/container_create.go @@ -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)