-
Notifications
You must be signed in to change notification settings - Fork 127
Can't connect as SYS on Docker for Windows #21
Comments
issue fuzziebrain#21 fix connecting to database from outside container on windows - ownership issue on scripts
This is based on how it was implemented in the official Docker image from Oracle. The |
Have solved an issue by using --mount. Unfortunately for a some reason it did not work from Windows and i had to run the command for the first time directly from docker VM. docker run -d |
I tried with the same but parameter
I had the same running on my macbook before but somehow my APFS got corrupted and I had to format my disc and restart from scratch. As my docker mount before was on |
Also tried |
OK. Need to be oracle user and use this command instead:
|
|
When running the container on Docker for Windows connecting as SYS from outside the container fails with incorrect username/password. This appears to be due to the orapwXE file being symlinked onto a windows filesystem where ownership cannot be changed or persisted.
Is there a reason (other than tidiness) these files are symlinked rather than copied in on startup? I've modified
runOracle.sh
to copy the files and thenchown oracle:oinstall
them and everything seems fine. I assume we could copy them back out to the volume inshutdownDb.sh
to ensure they stay in-sync.Happy to put together a PR if I'm not missing something.
The text was updated successfully, but these errors were encountered: