Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

468
Visualizações
Docker buildx with node app on Apple M1 Silicon - standard_init_linux.go:211: exec user process caused "exec format error

Please help!

I am trying to deploy a docker image to a kuebernetes clusters. No problem until I switched to new Macbook Pro with M1.

Once I build the image on the m1 machine and deploy I get the following error from the kuebernetes pod: standard_init_linux.go:211: exec user process caused "exec format error"

After doing some research, I followed this medium post on getting docker buildx added and set up.

Once I build a new image using the new buildx and run it locally using the docker desktop (the m1 compatible preview version), it runs without issue. However the kubernetes pod still shows the same error. standard_init_linux.go:211: exec user process caused "exec format error"

My build command
docker buildx use m1_builder && docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile -t ${myDockerRepo} --push . '
During the build I see each platform logging out that it is running the commands from my Dockerfile.

My push command
docker push ${myDockerRepo} One odd thing to note is the sha256 digest in the docker push command response does not change.

Here is my docker file:

# Use an official Node runtime as a parent image
FROM node:10-alpine

# Copy the current directory contents into the container at /app
COPY dist /app

# Set the working directory to /app
WORKDIR /app

# Make port 8000 available to the world outside this container
EXPOSE 8000

# Run npm run serve:dynamic when the container launches
CMD ["node", "server"]

I am no docker expert, clearly. Started with a full head of hair. Down to 3 strands. Please save those 3 strands.

I appreciate all help and advice!

Update

I have pulled the image built by the M1 macbook down to my other macbook and could run the image locally via docker desktop. I am not sure what this means. Could it be just a kuebernetes setting?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Try adding --platform=linux/amd64 to your dockerfile:

FROM --platform=linux/amd64 node:10-alpine
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda