diff options
Diffstat (limited to 'cmd/podman/machine/machine.go')
-rw-r--r-- | cmd/podman/machine/machine.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/podman/machine/machine.go b/cmd/podman/machine/machine.go index b059afc38..848a0715e 100644 --- a/cmd/podman/machine/machine.go +++ b/cmd/podman/machine/machine.go @@ -3,6 +3,8 @@ package machine import ( + "errors" + "runtime" "strings" "github.com/containers/podman/v3/cmd/podman/registry" @@ -16,6 +18,18 @@ var ( noOp = func(cmd *cobra.Command, args []string) error { return nil } + // noAarch64 temporarily disables arm64 support on + // Apple Silicon + noAarch64 = func(cmd *cobra.Command, args []string) error { + if runtime.GOARCH == "arm64" { + if runtime.GOOS == "darwin" { + return errors.New("due to missing upstream patches, Apple Silicon is not capable of running Podman machine yet") + } + return errors.New("no aarch64 images are available at this time") + } + return nil + } + // Command: podman _machine_ machineCmd = &cobra.Command{ Use: "machine", |