webhook.site icon indicating copy to clipboard operation
webhook.site copied to clipboard

exec /init: exec format error

Open jerem0808 opened this issue 1 year ago • 3 comments

When i start the webhook pod in my minikube instance the webhook pod is crashing and the only log that I can see is as follows:

exec /init: exec format error
Stream closed EOF for webhook/webhook-b648cd58c-pblc6 (webhook)

Any ideas?

k8s Rev 1.28.3

jerem0808 avatar Jan 23 '24 15:01 jerem0808

Hi there, what OS and processor architecture are you running Minikube on?

fredsted avatar Jan 23 '24 15:01 fredsted

Hi it's an Apple Macbook pro 16'' M3 (ARM64)

jerem0808 avatar Jan 23 '24 16:01 jerem0808

So the issue is, the docker image u are creating is for arm architecture but u r trying to run it on amd architecture. U can just user --platform=linux/amd64 in ur docker build command and everything should work fine

twelcon avatar May 13 '24 10:05 twelcon