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 can't be reached from another PC
  • permission denied error in docker
  • Docker container detected! Ruxit Agent cannot be installed
  • Symfony in docker container timeout
  • How to ship java based web application in AWS cloud using docker
  • How do I configure mongo to run in docker to using an external drive on windows
  • 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?

  • how to create a docker image and update task definition in ecs with it using wercker
  • How to access files downloaded on my windows machine from boot2docker?
  • One or more undefined variables: 'dict object' has no attribute 'SSH_AUTH_SOCK'
  • Docker mongodb - how are data only containers portable
  • Uncaught exception Failure(“input_value: bad bigarray kind”) - Unison on Windows and Mgt Development Environment
  • docker expose ports only on host
  • 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.