I'm trying to start an Oracle 23ai Free container from the official image (container-registry.oracle.com/database/free:latest), but encountering two mutually exclusive failures:
ORACLE_PASSWORD
set:docker run -d --privileged --name oracle-db \
-e ORACLE_PASSWORD="MyPass123!" \
-v /data/oracle/data:/opt/oracle/oradata \
-e INIT_SGA_SIZE=800 -e INIT_PGA_SIZE=400 \
container-registry.oracle.com/database/free:latest
Error:
Configuring Oracle Listener.
/bin/su: invalid option -- 't'
Database configuration failed. Check logs under '/opt/oracle/cfgtoollogs/dbca'.
ORACLE_PASSWORD
:The container continuously prompts Password cannot be null. Enter password: and never starts.
Attempted Solutions
Used --privileged mode.
Adjusted memory parameters (INIT_SGA_SIZE, INIT_PGA_SIZE).
Verified password complexity (uppercase, number, special char).
Checked dbca logs (no clear actionable error).
Question
What is the correct way to start this container?
I ran the below and it worked. Your volumne, is it suppose to be a startup script? if so you will need to put it in here: /opt/oracle/scripts/startup.
I also removed the quotes around your password as it failed for me using them....
docker run -d --privileged --name oracle-db2 \
-e ORACLE_PASSWORD=MyPass! \
-e INIT_SGA_SIZE=800 -e INIT_PGA_SIZE=400 \
container-registry.oracle.com/database/free