Merge pull request #6 from mrunalp/init_state
Update state after creating container
This commit is contained in:
commit
0681d5d94b
1 changed files with 4 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue