title: How do we set the the RAM and disk space for a docker container?
body: <p>Following are the details of the docker containers and images that I have.</p>
  
  <pre><code>Animeshs-MacBook-Pro:docker_tests animesh$ docker-machine ls
  NAME          ACTIVE   URL          STATE     URL                         SWARM   DOCKER    ERRORS
  celery-test   *        virtualbox   Running   tcp://192.168.99.100:2376           v1.9.1    
  hello-world   -        virtualbox   Stopped                                       Unknown   
  
  Animeshs-MacBook-Pro:docker_tests animesh$ docker ps -a
  CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES
  33f0eca77b4c        celery-image1       "/bin/bash"         2 hours ago         Exited (0) 25 minutes ago                       current_image
  a4607f34b309        ubuntu:latest       "/bin/bash"         4 hours ago         Exited (0) 3 hours ago                          celery_app
  
  Animeshs-MacBook-Pro:docker_tests animesh$ docker-machine ssh celery-test
  Boot2Docker version 1.9.1, build master : cef800b - Fri Nov 20 19:33:59 UTC 2015
  Docker version 1.9.1, build a34a1d5
  
  docker@celery-test:~$ df -h
  Filesystem                Size      Used Available Use% Mounted on
  tmpfs                   896.6M    889.6M      7.0M  99% /
  tmpfs                   498.1M         0    498.1M   0% /dev/shm
  cgroup                  498.1M         0    498.1M   0% /sys/fs/cgroup
  none                    464.8G     44.0G    420.8G   9% /Users
  tmpfs                   896.6M    889.6M      7.0M  99% /mnt/sda1/var/lib/docker/aufs
  
  docker@celery-test:~$ exit
  
  Animeshs-MacBook-Pro:docker_tests animesh$ docker start current_image
  current_image
  
  Animeshs-MacBook-Pro:docker_tests animesh$ docker ps -a
  CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                   PORTS               NAMES
  33f0eca77b4c        celery-image1       "/bin/bash"         2 hours ago         Up 3 seconds                                 current_image
  a4607f34b309        ubuntu:latest       "/bin/bash"         4 hours ago         Exited (0) 3 hours ago                       celery_app
  
  Animeshs-MacBook-Pro:docker_tests animesh$ docker attach current_image
  root@33f0eca77b4c:/# df -h
  Filesystem      Size  Used Avail Use% Mounted on
  none            897M  890M  7.0M 100% /
  tmpfs           499M     0  499M   0% /dev
  tmpfs           499M     0  499M   0% /sys/fs/cgroup
  tmpfs           897M  890M  7.0M 100% /etc/hosts
  shm              64M     0   64M   0% /dev/shm
  
  root@33f0eca77b4c:/# exit
  exit
  
  Animeshs-MacBook-Pro:docker_tests animesh$ 
  </code></pre>
  
  <p>I appears that I have run out of space on the VM.</p>
  
  <p>I want to assign 8GB disk space and 2GB RAM to the <code>celery-image1</code> image. How can I do that?</p>
  
  <p>If there are any command line parameters that I can enter when I create the container, I can do that also.</p>