Merge pull request #6 from mrunalp/init_state

Update state after creating container
This commit is contained in:
Antonio Murdaca 2016-09-13 23:04:56 +02:00 committed by GitHub
commit 0681d5d94b

View file

@ -549,6 +549,10 @@ func (s *Server) CreateContainer(ctx context.Context, req *pb.CreateContainerReq
return nil, err return nil, err
} }
if err := s.runtime.UpdateStatus(container); err != nil {
return nil, err
}
s.addContainer(container) s.addContainer(container)
return &pb.CreateContainerResponse{ return &pb.CreateContainerResponse{