Skip to content

Commit

Permalink
Merge pull request #13442 from tricktron/rm-mounted-host-socket-on-macos
Browse files Browse the repository at this point in the history
`podman machine rm` removes the mounted socket file on macOS
  • Loading branch information
openshift-merge-robot authored Mar 7, 2022
2 parents be3858b + 01514f3 commit e1f00b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e1f00b4

Please sign in to comment.