mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 04:39:33 +00:00
GetSystemDefaultProvider reworked to fetch provider value from the config file. Additional environment variable CONTAINERS_MACHINE_PROVIDER is supported to override the config for testing purposes. Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
16 lines
332 B
Go
16 lines
332 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, err := cmdMach.GetSystemProvider()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return provider.RemoveAndCleanMachines()
|
|
}
|