kubctl logs fails

If you are facing this situation,

kubectl logs django-b95655d7f-8nw7f -p
standard_init_linux.go:228: exec user process caused: exec format error

it is most likely that you are trying to run a Docker container that is built on a different architecture than the server.
Let me guess, you are using a Mac with a M1 processor and you try to run the docker container on some cloud service.
That’s not going to work.

Rebuild the docker container on the server first and then reuse it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.