fuzziebrain / docker-apex-stack

Utility scripts for creating an Oracle Application Express stack as a Docker container.
MIT License
97 stars 34 forks source link

Root password of docker container? #72

Closed choque88 closed 1 year ago

choque88 commented 1 year ago

Hi!

I want to change some settings in the settings.xml of the ORDS instance so I connect to the container via

docker exec -it <container_name> /bin/sh

Then I tried copying the settings.xml to the /files/ folder

sh-4.2$ cp /opt/oracle/oradata/ordsconfig/PDB01/global/settings.xml /tmp/files/settings.xml
sh-4.2$ cp: cannot create regular 'tmp/files/settings.xml': Permission denied

Editing the file with vi, vim or nano doesn't work either, since none of those editors are installed.

So what I'm asking is, what's the password for the root account of the container? Meaning, what's the password I have to enter when doing

sh-4.2$ su

Then I'd be able to copy or edit the file. Thanks!

choque88 commented 1 year ago

Ok, nevermind. Just found out about the -u 0 option of the docker exec command...