Choose memory size with docker provider?

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 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?

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

Any help? Still wondering how to increase memory.