Docker shm Size Limitation

MD
R
Markdown

Docker shm is limited to 64MB. However some processes may require more shm memory.

1# Intro
2/dev/shm is the implementation of traditional shared memory concept.
3It's a way to pass data between processes.
4It is also a file system which keeps all files in virtual memory.
5
6## Warnings
7The storage media (Disk, SSD, etc.) of an emptyDir volume is determined by the medium of the filesystem holding the kubelet root dir (typically /var/lib/kubelet). There is no limit on how much space an emptyDir or hostPath volume can consume, and no isolation between Containers or between Pods.
8Source: https://kubernetes.io/docs/concepts/storage/volumes/
9
10## Implementations
11### Docker
12docker run -p 3600:3600 --shm-size 1G -it coderecipes/coderecipes:production-0e1d4d3a1f799f8aa1fd1222e3caf768e575491a /bin/sh
13
14### Kubernetes

Created on 1/16/2019