Trove is launching Docker containers without specifying shm_size, which
left the default 64MB limit for /dev/shm. PostgreSQL uses shared_buffers
of 128MB by default, so any database running with default settings could
exceed the default /dev/shm size. In this situation PostgreSQL may fail
during shared memory operations with errors such as: "could not resize
shared memory segment: No space left on device".
This patch uses ipc_mode=host to pass the shared memory from host to container.
Co-Authored-By: Eric <mangust404@gmail.com>
Change-Id: I2a7c69776e2a41f9ac5fd9da93f5772746d87a2f
Signed-off-by: wu.chunyang <wchy1001@gmail.com>