---
slug: "m1-mac-で-x86用の-docker-イメージをビルドする"
title: "Building x86 Docker Images on an M1 Mac"
description: "Fix `no space left on device` build failures in Docker Desktop on macOS — grow the Docker.raw disk allocation or run `docker system prune`."
url: "https://www.ytyng.com/en/blog/m1-mac-で-x86用の-docker-イメージをビルドする"
publish_date: "2021-12-04T06:04:41Z"
created: "2021-12-04T06:04:41Z"
updated: "2026-05-11T13:21:36.526Z"
categories: []
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/729b5ddfcc194ffcb653d5585dda5e85.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# Building x86 Docker Images on an M1 Mac

<p><span>If docker build fails after switching to an M1 Mac.</span></p>
<pre><span>docker </span>build <strong>--platform linux/amd64</strong> . -t <span>$</span>{image_name}:<span>$</span>{image_tag} ...</pre>
<pre>--platform linux/amd64</pre>
<p>should be added</p>
