---
title: "Discussion on \"Exec format error in Docker: why it happens and how to fix it\" | Hashnode"
description: "Discussion on \"Exec format error in Docker: why it happens and how to fix it\". Seeing \"exec format error\" when a Docker container starts? Find out which CPU your image was built for and fix it with buildx or cross-compiling."
url: "https://hashnode.com/posts/exec-format-error-in-docker-why-it-happens-and-how-to-fix-it/6b01e56ec013f6b7e7643da4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Exec format error in Docker: why it happens and how to fix it](https://octave.hashnode.dev/exec-format-error-in-docker-why-it-happens-and-how-to-fix-it?utm_source=hashnode&utm_medium=feed)

Seeing "exec format error" when a Docker container starts? Find out which CPU your image was built for and fix it with buildx or cross-compiling.

Nov 21 · 13 min read · octave.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#devops](https://hashnode.com/tag/devops)
-   [#go](https://hashnode.com/tag/go)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[octave Nkurunziza](https://hashnode.com/@octave)

@octave

  
[View profile](https://hashnode.com/@octave)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
