mirror of
https://github.com/containers/podman.git
synced 2025-05-29 22:46:25 +08:00
Fixes: #13301 ("machine rm removes the mounted socket file on macos")
[NO NEW TESTS NEEDED] Signed-off-by: Thibault Gagnaux <tgagnaux@gmail.com>
This commit is contained in:
@ -667,6 +667,11 @@ func (v *MachineVM) Remove(name string, opts machine.RemoveOptions) (string, fun
|
||||
if !opts.SaveImage {
|
||||
files = append(files, v.ImagePath)
|
||||
}
|
||||
socketPath, err := v.getForwardSocketPath()
|
||||
if err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
files = append(files, socketPath)
|
||||
files = append(files, v.archRemovalFiles()...)
|
||||
|
||||
if err := machine.RemoveConnection(v.Name); err != nil {
|
||||
|
Reference in New Issue
Block a user