# "no space left on device" when building images

**URL:** <https://community.okteto.com/t/no-space-left-on-device-when-building-images/1345>\
**Category:** Help\
**Tags:** buildkit\
**Created:** [November 27, 2024, 12:39pm UTC](https://community.okteto.com/t/no-space-left-on-device-when-building-images/1345 "2024-11-27T12:39:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pchico83](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/pchico83/32/25_2.png) [@pchico83](https://community.okteto.com/u/pchico83)\
**Post date:** [November 27, 2024, 12:39pm UTC](https://community.okteto.com/t/no-space-left-on-device-when-building-images/1345/1 "2024-11-27T12:39:47Z")

</div>

When building my images, I am getting “no space left on device” errors

---

<div class="post-metadata">

**Author:** ![pchico83](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/pchico83/32/25_2.png) [@pchico83](https://community.okteto.com/u/pchico83)\
**Post date:** [November 27, 2024, 12:41pm UTC](https://community.okteto.com/t/no-space-left-on-device-when-building-images/1345/2 "2024-11-27T12:41:49Z")

</div>

This is because you need a larger disk for buildkit, or reduce your buildkit [cacheRatio](https://www.okteto.com/docs/self-hosted/helm-configuration/#buildkit).

The default `cacheRatio` is 0.5 to have space for in-flight builds and pulling images. Based on your scenario, you might need a lower `cacheRatio` or a larger disk:

```auto
buildkit:
  persistence:
    enabled: true
    size: 500Gi
    cacheRatio: 0.3

```
