Can an image have a custom default shm-size?

Viewed 4559

I have a container which must be run with a /dev/shm larger than the default 64Mb. It works to run it like this:

docker run --shm-size=1G my-container

It is inconvenient though to have to provide the 'shm-size' argument every time, and easily missed for someone not familiar with the container. It would be nice if the container itself could have a custom default shm size. Is this possible?

3 Answers
Related