I am using the image sath89/oracle-12c
Docker run~ can be used normally after starting, but cannot be used after closing the container.
My Start Command:
docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c
Container error log:
> Import finished > Database ready to use. Enjoy! ; ) > Database closed. > Database dismounted. > found files in /u01/app/oracle/oradata Using them instead of initial database > rm: cannot remove '/u01/app/oracle-product/12.1.0/xe/dbs': Directory not empty
Whether the server shuts down directly or the docker stop normally, the docker start container id will not come up after the shutdown, and an error in the last two lines of the log will be reported every time.
What is the reason?
Github said that the file system needs to be reset.
Execute the command under the docker configuration directory /var/lib/docker: mkfs -t xfs -n ftype=1 /PATH/TO/DEVICE