mirror of
https://github.com/containers/podman.git
synced 2025-09-21 03:35:06 +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 {
|
if !opts.SaveImage {
|
||||||
files = append(files, v.ImagePath)
|
files = append(files, v.ImagePath)
|
||||||
}
|
}
|
||||||
|
socketPath, err := v.getForwardSocketPath()
|
||||||
|
if err != nil {
|
||||||
|
logrus.Error(err)
|
||||||
|
}
|
||||||
|
files = append(files, socketPath)
|
||||||
files = append(files, v.archRemovalFiles()...)
|
files = append(files, v.archRemovalFiles()...)
|
||||||
|
|
||||||
if err := machine.RemoveConnection(v.Name); err != nil {
|
if err := machine.RemoveConnection(v.Name); err != nil {
|
||||||
|
Reference in New Issue
Block a user