diff --git a/service/ContainerService.go b/service/ContainerService.go index 6658a9f..eba3838 100644 --- a/service/ContainerService.go +++ b/service/ContainerService.go @@ -167,6 +167,9 @@ func (s *ContainerService) refreshContainer(containerType occp.ContainerType) { return } + cs.cmd.Process.Kill() + cs.cmd = nil + delete(s.connectorMap, cs.client.Connector) err := cs.client.Stop(context.Background()) if nil != err {