private HostConfig buildHostConfig(HostConfig config) {
        if (shmSize != null) {
            config.withShmSize(shmSize);
        }
        if (tmpFsMapping != null) {
            config.withTmpFs(tmpFsMapping);
        }
        return config;
    }
Set any custom settings for the create command such as shared memory size.
core/src/main/java/org/testcontainers/containers/GenericContainer.java