I'm having this problem after creating the Oracle Database XE 18.4 image with WSL2. I'm trying to create a container based on this image and I keep receiving these errors, even though I'm doing exactly the same thing that is asked on this tutorial provided by Oracle. The errors show up when I try to create the container and turn it on for the first time
sed: can't read /etc/oratab: No such file or directory
/opt/oracle/runOracle.sh: line 194: /etc/init.d/oracle-xe-18c: No such file or directory
grep: /etc/oratab: No such file or directory
/opt/oracle/checkDBStatus.sh: line 18: oraenv: No such file or directory
#####################################
########### E R R O R ###############
DATABASE SETUP WAS NOT SUCCESSFUL!
Please check output for further info!
########### E R R O R ###############
#####################################
The following output is now a tail of the alert.log:
tail: cannot open '/opt/oracle/diag/rdbms/*/*/trace/alert*.log' for reading: No such file or directory
tail: no files remaining
I would like to know what on earth could I do to solve these errors and get this database running. As a matter of fact, I can't verify if these files mentioned in the log exist because I can't even connect to this container as it remains on for around 5 seconds due to these errors.
I'm using Docker on Windows integrated with WSL2.
My Docker installation info is:
Client: Docker Engine - Community
Cloud integration: 1.0.12
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Built: Tue Mar 2 20:14:53 2021
OS/Arch: windows/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:15:47 2021
OS/Arch: linux/amd64
containerd:
Version: 1.4.4
runc:
Version: 1.0.0-rc93
docker-init:
Version: 0.19.0
container-registry.oracle.com/database/express:latest
successfully and it more straightforward than the early directions you followed. Finally, this blog post was a huge help if you want to build from scratch: dbvisit.com/blog/… However, I just customized the above image in the end.