DEV Community

ahn4
ahn4

Posted on

2 2

Kubernetes - Problem related to M1 chip Mac

What happened

standard_init_linux.go:228: exec user process caused: exec format error

When

When I Apply Deployment.

Why

Docker image created by M1 Chip didn't work properly.

How to resolve

# it will not work
docker build -t {tag name} .

# it will work.
docker build --platform=linux/amd64 -t {tag name} .
Enter fullscreen mode Exit fullscreen mode

cf

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay