为“数据文件位置”指定的位置没有足够的可用空间。是什么意思?

为“数据文件位置”指定的位置没有足够的可用空间。是什么意思?

我在 Windows 10 上的 Ubuntu Linux 子系统中的 docker 容器中运行 oracle DB oracle/database 18.4.0-xe。我想在本地保存我的数据文件,这样当我停止容器时就不会丢失数据。我使用下面的 docker 命令。

docker run -d -it --rm --name oracleXe -p 1521:1521 -p 5500:5500 -e ORACLE_PWD="Password1_One" -v /home/user/opt/oracle:/opt/oracle/oradata oracle/database:18.4.0-xe

当我查看 docker 日志时,出现以下错误

[FATAL] [DBT-06604] The location specified for 'Data Files Location' has insufficient free space.
   CAUSE: Only (999MB) free space is available on the location (/opt/oracle/oradata/XE).
   ACTION: Choose a 'Data Files Location' that has enough space (minimum of (3,609MB)) or free up space on the specified location.

Database configuration failed. Check logs under '/opt/oracle/cfgtoollogs/dbca'.
mkdir: cannot create directory '/opt/oracle/oradata/dbconfig': Permission denied
mv: cannot stat '/opt/oracle/product/18c/dbhomeXE/dbs/spfileXE.ora': No such file or directory
mv: cannot stat '/opt/oracle/product/18c/dbhomeXE/dbs/orapwXE': No such file or directory
mv: cannot move '/opt/oracle/product/18c/dbhomeXE/network/admin/listener.ora' to '/opt/oracle/oradata/dbconfig/XE/': No such file or directory
mv: cannot move '/opt/oracle/product/18c/dbhomeXE/network/admin/tnsnames.ora' to '/opt/oracle/oradata/dbconfig/XE/': No such file or directory
cp: cannot create regular file '/opt/oracle/oradata/dbconfig/XE/': No such file or directory
cp: cannot stat '/opt/oracle/oradata/dbconfig/XE/oratab': No such file or directory

数据文件位置在哪里?999MB 的限制从何而来。我该如何增加它?如果我省略 -v,那么容器可以正常启动,当然无需在本地保留数据。

谢谢

相关内容