Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rootless podman shuld mount a tmpfs at /dev/shm by default. Until that happens, it's worked around by explicitly specifying the mount point. Also, the --shm-size flag isn't working with rootless podman [1], so --tmpfs is used instead. It tries to mimic the in-kernel tmpfs default [2] of using half the amount of total RAM. If for some reason /proc/meminfo can't be parsed, it falls back to using podman's default of 65536k for tmpfs. It's not clear whether podman uses kibibytes or kilobytes for 'k'. The former was picked here for consistency. [1] containers/podman#1770 [2] https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt #9
- Loading branch information