Expected behavior
Able to switch user to oracle successfully
Actual behavior
Error shown:
su: cannot open session: Permission denied
Information
I’m trying to run Oracle 12.1.0.2 container in my Docker and I’m unable to su to oracle user in bash with error permission denied. Currently I’m using the latest Docker Version 18.06.1-ce-win73 (19507) under Windows 10 Pro Version 1803 build 17134.407. My Docker is set to Windows container with Experimental features enabled so that I can run Linux containers in LCOW setup.
When I was using Linux container without experimental features in the past, I was able to configure Oracle and su oracle in bash successfully. However after I switch to Windows container and enable experimental features, I was not able to su oracle in bash.
Steps to reproduce the behavior
1 Execute docker run image
docker run --platform=linux -d -it --name OracleDB --shm-size=4G -p 1521:1521 container-registry.oracle.com/database/enterprise:12.1.0.2
2 Execute bash to Oracle DB container
docker exec -it OracleDB bash
3 su oracle