# Choose memory size with docker provider?

**URL:** <https://discuss.hashicorp.com/t/choose-memory-size-with-docker-provider/34779>\
**Category:** Vagrant\
**Created:** [January 25, 2022, 8:12pm UTC](https://discuss.hashicorp.com/t/choose-memory-size-with-docker-provider/34779 "2022-01-25T20:12:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeoffreyPlitt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/geoffreyplitt/32/25432_2.png) [@GeoffreyPlitt](https://discuss.hashicorp.com/u/GeoffreyPlitt)\
**Post date:** [January 25, 2022, 8:12pm UTC](https://discuss.hashicorp.com/t/choose-memory-size-with-docker-provider/34779/1 "2022-01-25T20:12:45Z")

</div>

My Vagrant docker VM is running out of memory. I tried the approach from [vagrantfile - Vagrant with Docker provider: specifying CPU and Memory - Stack Overflow](https://stackoverflow.com/questions/47919339/vagrant-with-docker-provider-specifying-cpu-and-memory) which says to do “d.create\_args = [’–memory=6g’]” but it did not change the memory size when destroyed/re-upped.

How do I increase the memory size of the VM with docker provider?

---

<div class="post-metadata">

**Author:** ![GeoffreyPlitt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/geoffreyplitt/32/25432_2.png) [@GeoffreyPlitt](https://discuss.hashicorp.com/u/GeoffreyPlitt)\
**Post date:** [January 25, 2022, 8:23pm UTC](https://discuss.hashicorp.com/t/choose-memory-size-with-docker-provider/34779/2 "2022-01-25T20:23:59Z")

</div>

Using Vagrant 2.2.19 on Mac mini (M1, 2020) with OS X 11.6, Docker Desktop 4.1.1

---

<div class="post-metadata">

**Author:** ![GeoffreyPlitt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/geoffreyplitt/32/25432_2.png) [@GeoffreyPlitt](https://discuss.hashicorp.com/u/GeoffreyPlitt)\
**Post date:** [February 3, 2022, 11:26pm UTC](https://discuss.hashicorp.com/t/choose-memory-size-with-docker-provider/34779/3 "2022-02-03T23:26:02Z")

</div>

Any help? Still wondering how to increase memory.
