Add support for pod /dev/shm that is shared by the pod ctrs

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
Mrunal Patel 2016-12-08 15:32:17 -08:00
parent 8547c0dbd9
commit be29524ba4
6 changed files with 53 additions and 1 deletions

View file

@ -283,6 +283,9 @@ func (s *Server) createSandboxContainer(containerID string, containerName string
}
}
// bind mount the pod shm
specgen.AddBindMount(sb.shmPath, "/dev/shm", []string{"rw"})
specgen.AddAnnotation("ocid/name", containerName)
specgen.AddAnnotation("ocid/sandbox_id", sb.id)
specgen.AddAnnotation("ocid/sandbox_name", sb.infraContainer.Name())