I am trying to run skaffold command: skaffold run -f skaffold.yaml --platform=linux/amd64, But I am getting the following error :
invalid skaffold config: getting minikube env: running [/opt/homebrew/bin/minikube docker-env --shell none -p minikube --user=skaffold]
- stdout: "false exit code 14\n"
- stderr: "X Exiting due to MK_USAGE: the docker-env command only supports the docker and containerd runtimes\n"
- cause: exit status 14
I am using Minikube with driver=podman and --container-runtime=cri-o to run my containers using Kubernetes. I am using Mac M1 operating system.
Here is my Minikube command to start the Minikube :
minikube start --kubernetes-version=v1.27.3 --driver=podman --container-runtime=cri-o --force-systemd —feature-gates="LocalStorageCapacityIsolation=false" --memory 7196
Below is my skaffold yml file:
apiVersion: skaffold/v2beta28
kind: Config
metadata:
name: example
build:
local:
push: false
useBuildkit: true
artifacts:
- image: node-hot-reloading
context: ./
sync:
auto: false
buildpacks:
builder: gcr.io/buildpacks/builder:v1
trustBuilder: true
env:
- GOOGLE_RUNTIME_VERSION=17
- GOOGLE_CLEAR_SOURCE=true
tagPolicy:
sha256: {}
deploy:
kubectl:
manifests:
- k8s-pod.yml