add kill containers to kic stop

pull/7570/head
Medya Gh 2020-04-09 20:01:11 -07:00
parent 83f4fd4dba
commit ded8273a2e
1 changed files with 4 additions and 1 deletions

View File

@ -347,7 +347,10 @@ func (d *Driver) Stop() error {
}
if len(containers) > 0 {
if err := runtime.StopContainers(containers); err != nil {
glog.Errorf("unable to stop containers : %v", err)
glog.Infof("unable to stop containers : %v", err)
}
if err := runtime.KillContainers(containers); err != nil {
glog.Errorf("unable to kill containers : %v", err)
}
}
glog.Infof("successfully stopped kubernetes!")