remove this container from map

Signed-off-by: chchliang <chen.chuanliang@zte.com.cn>
This commit is contained in:
chchliang 2017-03-03 16:29:03 +08:00
parent 971b9ca29a
commit 54b677acf9
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ func (s *Service) Delete(ctx context.Context, r *api.DeleteRequest) (*api.Delete
if err != nil {
return nil, err
}
delete(s.containers, r.ID)
return &api.DeleteResponse{ExitStatus: status}, nil
}