# Virtual memory exhausted: Cannot allocate memory

**URL:** <https://forums.docker.com/t/virtual-memory-exhausted-cannot-allocate-memory/107815>\
**Category:** Docker Hub\
**Tags:** automatedbuilds, dockerhub, build\
**Created:** [April 21, 2021, 10:49pm UTC](https://forums.docker.com/t/virtual-memory-exhausted-cannot-allocate-memory/107815 "2021-04-21T22:49:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keceli](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/keceli/32/20606_2.png) [@keceli](https://forums.docker.com/u/keceli)\
**Post date:** [April 21, 2021, 10:49pm UTC](https://forums.docker.com/t/virtual-memory-exhausted-cannot-allocate-memory/107815/1 "2021-04-21T22:49:36Z")

</div>

I get `virtual memory exhausted: Cannot allocate memory` error on DockerHub after 100 minutes of building an image. I am probably hitting a hard limit on memory or build time, but I am curious if there is any workaround for this issue or an upgrade option for these limits?
