# Docker container shared memory

**URL:** <https://forums.docker.com/t/docker-container-shared-memory/25737>\
**Category:** General\
**Created:** [December 7, 2016, 12:07am UTC](https://forums.docker.com/t/docker-container-shared-memory/25737 "2016-12-07T00:07:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtakhellambam](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dtakhellambam](https://forums.docker.com/u/dtakhellambam)\
**Post date:** [December 7, 2016, 12:07am UTC](https://forums.docker.com/t/docker-container-shared-memory/25737/1 "2016-12-07T00:07:44Z")

</div>

Hi,  
I understand that we can set the size of the shared memory on the container while spawning the docker images using the option shm-size as: docker run -it --shm-size=1g centos /bin/bash. But the question is

- How much maximum memory can I set it to given that I am trying to spin up similar number of docker processes. Lets say 10 containers.
- Does the size of the memory depend on the RAM of the host machine. And appx divided by the number of processes I intend to initiate?
