spiegel_podman/cmd/podman/system/reset_machine.go
Ashley Cui 80744c6441 podman system reset removed machines incorrectly
podman system reset did not clean up machines fully, leaving some config
files, and breaking machines. Now it removes all machines files fully.

Signed-off-by: Ashley Cui <acui@redhat.com>
2022-05-04 10:31:42 -04:00

13 lines
301 B
Go

//go:build (amd64 && !remote) || (arm64 && !remote)
// +build amd64,!remote arm64,!remote
package system
import (
cmdMach "github.com/containers/podman/v4/cmd/podman/machine"
)
func resetMachine() error {
provider := cmdMach.GetSystemDefaultProvider()
return provider.RemoveAndCleanMachines()
}