summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-07 08:36:52 -0500
committerGitHub <noreply@github.com>2022-03-07 08:36:52 -0500
commite1f00b451234fb673505c54051a97d5748c99d3e (patch)
tree1ac34d772b68d987b3d35532e95e7dfaa5d5a4fd
parentbe3858bcf1a666e374713a43892b8d7ec10c9c8b (diff)
parent01514f33ba3ec4f54badf7d1297b85d05b24f59d (diff)
downloadpodman-e1f00b451234fb673505c54051a97d5748c99d3e.tar.gz
podman-e1f00b451234fb673505c54051a97d5748c99d3e.tar.bz2
podman-e1f00b451234fb673505c54051a97d5748c99d3e.zip
Merge pull request #13442 from tricktron/rm-mounted-host-socket-on-macos
`podman machine rm` removes the mounted socket file on macOS
-rw-r--r--pkg/machine/qemu/machine.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 9beec2173..8b567fb26 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -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 {