docker run --shm-size 1g myapp

Category: Docker

docker run --shm-size 1g myapp

Run with 1 GB of shared memory

Enlarges /dev/shm from the tiny 64 MB default to 1 GB. Applications like browsers and databases write shared memory there and fail when it is full. The host RAM backs the shared memory.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.