Update state after creating container
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
817b22b5f3
commit
61ae296fe9
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