Cannot increase size for docker container – Ubuntu 16.04

I tried running

docker run --memory=16g -ti -v [...]

But on my other terminal when I run docker stats, it always show that

  • Docker container stops without any errors while runnning sbt/play application
  • Docker: fail linking with mysql DB
  • how to mount volume in ElasticBeanstalk Docker container using only Dockerrun.aws.json
  • Docker Experimental Checkpoint/Restore Implement tutorial
  • docker after run image 404. Tomcat - requested resource is not available
  • Docker for windows container is not starting with -m 4g but works fine with -m 3g
  • MEM USAGE / LIMIT 48.89 MiB / 3.724 GiB
    

    And it seems like 3.724Gb is the upper bound of the limit – if I rerun with only --memory=1G then it will accept.

    Can I increase/change this?

  • from an ec2 instance spin up another ec2 instance and push a csv file on it
  • Difference between 'image' and 'build' within docker compose
  • Getting access to GPU on Docker on Windows 10
  • Docker - Connect Apache Tomcat web server to MySQL server
  • New to React and trying to compile an APK but failing
  • Post a Json file to elasticsearch running on Docker, Kitematic on Windows 10
  • One Solution collect form web for “Cannot increase size for docker container – Ubuntu 16.04”

    Docker can’t allocate more memory to a container than the docker host has available. If you check docker info, you should see the 3.724 limit. If you are on Windows or MacOS, then docker is running inside of a VM under the covers, and that VM has a limit on how much of your memory is allocated to it. You can adjust this limit by changing the settings on the VM (in some versions, this is available in the docker preferences).

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.