mirror of
https://github.com/containers/podman.git
synced 2025-09-20 19:24:58 +08:00
Merge pull request #13442 from tricktron/rm-mounted-host-socket-on-macos
`podman machine rm` removes the mounted socket file on macOS
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