MaksymBilenko / docker-oracle-12c

:whale: Docker image with Oracle Database 12c on board
Apache License 2.0
679 stars 285 forks source link

contains couldn't restart #126

Closed zaldsd closed 5 years ago

zaldsd commented 5 years ago

Hi I used this command to start a contain,It works fine in this case.But my machine went down, and then the container won't start.Then I did a test,I start a new container,stop it after the initialization is complete,but it also couldn't restart. docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c

logs ...... 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

zaldsd commented 5 years ago

I have salved this problem by reformattting the filesystem where the docker config is stored (/var/lib/docker) mkfs -t xfs -n ftype=1 -f /PATH/TO/DEVICE

Reference here: https://github.com/moby/moby/issues/27214#issuecomment-315185785