From 61ae296fe9e78f636b4aa175d424a1be997ead20 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Tue, 13 Sep 2016 13:51:29 -0700 Subject: [PATCH] Update state after creating container Signed-off-by: Mrunal Patel --- server/runtime.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/runtime.go b/server/runtime.go index b3cdbab9..5b62982e 100644 --- a/server/runtime.go +++ b/server/runtime.go @@ -549,6 +549,10 @@ func (s *Server) CreateContainer(ctx context.Context, req *pb.CreateContainerReq return nil, err } + if err := s.runtime.UpdateStatus(container); err != nil { + return nil, err + } + s.addContainer(container) return &pb.CreateContainerResponse{