mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-06 00:45:43 +00:00
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>
13 lines
301 B
Go
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()
|
|
}
|