diff --git a/service/ContainerService.go b/service/ContainerService.go index c47287f..0e13d42 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 {