Reputation: 4275
I installed Oracle Database with the official dockerfile. The database works, but it is not clear how to became root (I need to install perl for installing sample schemas). I tried this:
sudo docker exec -u 0 -it oracle18se /bin/bash
but got:
OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/home/oracle\") set in config.json failed: permission denied": unknown
what does this mean?
Is there a default root password?
Upvotes: 2
Views: 2555
Reputation: 12197
Even easier to remember:
docker exec -u 0 -it 19c bash
Upvotes: 0
Reputation: 2147
You need to switch the working directory explicitly, e.g. with
docker exec -u root --workdir / -ti oracle18se /bin/sh
Some more info on that issue can be found on github here.
Upvotes: 6