title: Docker toolbox cannot allocate memory
body: <p>I'm trying to get Docker running a container locally on my mac that I've been working on in the cloud. I did the docker commit/save/load find. But when I got to run it locally after I installed docker toolbox I get this error</p>
  
  <pre><code>docker logs es-loaded-with-data
  Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c5330000, 4207738880, 0) failed; error='Cannot allocate memory' (errno=12)
  Starting elasticsearch: #
  # There is insufficient memory for the Java Runtime Environment to continue.
  # Native memory allocation (mmap) failed to map 4207738880 bytes for committing reserved memory.
  # An error report file with more information is saved as:
  # //hs_err_pid16.log
  
  Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c5330000, 4207738880, 0) failed; error='Cannot allocate memory' (errno=12)
  Starting elasticsearch: #
  </code></pre>
  
  <p>If I do <code>docker info</code>
  then I get </p>
  
  <blockquote>
    <p>Total Memory: 1.956 GiB</p>
  </blockquote>
  
  <p>clearly 2 Gb isn't enough. How do I increase it so my container will run?</p>