mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Merge pull request #20402 from baude/applehvrmstopgvproxy
Kill gvproxy when machine rm -f
This commit is contained in:
@ -397,6 +397,11 @@ func (m *MacMachine) Remove(name string, opts machine.RemoveOptions) (string, fu
|
||||
if err := m.Vfkit.stop(true, true); err != nil {
|
||||
return "", nil, err
|
||||
}
|
||||
defer func() {
|
||||
if err := machine.CleanupGVProxy(m.GvProxyPid); err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
files = m.collectFilesToDestroy(opts)
|
||||
|
Reference in New Issue
Block a user