server: container_create: store sandbox's ip in annotations
So it can be later retrieved when needed (cadvisor) Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
5d637f015d
commit
2ac2832686
5 changed files with 21 additions and 10 deletions
|
@ -622,6 +622,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
|||
|
||||
specgen.AddAnnotation(annotations.ImageName, imageName)
|
||||
specgen.AddAnnotation(annotations.ImageRef, imageRef)
|
||||
specgen.AddAnnotation(annotations.IP, sb.IP())
|
||||
|
||||
// bind mount the pod shm
|
||||
specgen.AddBindMount(sb.ShmPath(), "/dev/shm", []string{"rw"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue