From 18cd2bc87bb4c265df14fdc6391a337be0a022c4 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Fri, 12 Aug 2016 16:11:29 -0700 Subject: [PATCH] Setup defaults for the pod sandbox container Signed-off-by: Mrunal Patel --- server/runtime.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/runtime.go b/server/runtime.go index 8a402d24..df9775df 100644 --- a/server/runtime.go +++ b/server/runtime.go @@ -63,6 +63,11 @@ func (s *Server) CreatePodSandbox(ctx context.Context, req *pb.CreatePodSandboxR // creates a spec Generator with the default spec. g := generate.New() + // setup defaults for the pod sandbox + g.SetRootPath("/var/lib/ocid/graph/vfs/pause") + g.SetRootReadonly(true) + g.SetProcessArgs([]string{"/pause"}) + // process req.Hostname hostname := req.GetConfig().GetHostname() if hostname != "" {