mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Kill gvproxy when machine rm -f
In applehv, we were not killing gvproxy when stopping via podman machine rm with force. [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
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