---
slug: "mac-docker-no-space-left-on-device"
title: "No space left on device during Docker build on Mac despite having available storage"
description: "When building a Docker image on a Mac, you might encounter the \"no space left on device\" error. This can happen even when there seems to be enough storage space available, leaving you puzzled about the cause."
url: "https://www.ytyng.com/en/blog/mac-docker-no-space-left-on-device"
publish_date: "2021-02-10T00:25:48Z"
created: "2021-02-10T00:25:48Z"
updated: "2026-02-26T14:45:56.762Z"
categories: ["Docker", "mac"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/65387628eec94cb8b386b5384555aa18.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# No space left on device during Docker build on Mac despite having available storage

<p>When building Docker on a Mac,</p>
<p>I encountered the error message:</p>
<p>no space left on device</p>
<p>Even though there was plenty of storage space available, I couldn't figure out the cause.</p>
<p></p>
<p>Running docker system prune</p>
<p>and restarting the Mac</p>
<p>allowed the build to proceed successfully.</p>
