Skip to content

Can't set the shm_size for oracle xe #952

Description

@AlfAtGitHub

My oracle xe container is currently not starting because of a lack of shared memory:
"A database XE container needs at least 1 GB of shared memory (/dev/shm)."

My problem here: How can I set the shm_size (shmSize) for OracleContainer respectively GenericContainer?

I've already tried: .withCreateContainerCmdModifier(cmd -> cmd.withMemory((long) 4 * 1024 * 1024)).

Also tried some settings within the testcontainers.properties. Unfortunately I've not found what params are available and how to set it here.

Any help welcome. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions