Running an oracle container based on the official dockerfile. Container is running on an EC2 instance (Amazon Linux 2) which is RHEL derivative, I am getting:
Configuring Oracle Listener.
su: cannot open session: Permission denied
Listener configuration failed. Check log '/opt/oracle/cfgtoollogs/netca/netca_configure_out.log' for more details.
su: cannot open session: Permission denied
Container is started with:
docker run --name=oracledb -p 1521:1521 \
-e ORACLE_SID=XE -e ORACLE_PDB=foo -e ORACLE_PWD=bar \
oracle/database:18.4.0-x
By changing the entrypoint and dropping into the shell as a root, and executing su oracle indeed gives me permission denied. Why is this happening?