DEV Community

ahn4
ahn4

Posted on

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)