The error for starting the container of bitwardenrs

Hi, I’m a new Bitwarden_rs user and I am using docker on Centos 8(docker run).I had installed openssl and openssl-devel,but I find the error when I starting the container.

shellResult: | Version 1.18.0 |
|--------------------------------------------------------------------|
| This is an unofficial Bitwarden implementation, DO NOT use the |
| official channels to report bugs/features, regardless of client. |
| Send usage/configuration questions or feature requests to: |
| https://vaultwarden.discourse.group/ |
| Report suspected bugs/issues in the software itself at: |
| https://github.com/dani-garcia/bitwarden_rs/issues/new |
--------------------------------------------------------------------/

[INFO] No .env file found.

[2021-01-08 19:57:00.273][bitwarden_rs][INFO] JWT keys don’t exist, checking if OpenSSL is available…
OpenSSL 1.1.1d 10 Sep 2019
[2021-01-08 19:57:00.292][bitwarden_rs][INFO] OpenSSL detected, creating keys…
genrsa: Can’t open “data/rsa_key.pem” for writing, No such file or directory
Can’t open data/rsa_key.pem for reading, No such file or directory
140202111382656:error:02001002:system library:fopen:No such file or directory:…/crypto/bio/bss_file.c:69:fopen(‘data/rsa_key.pem’,‘r’)
140202111382656:error:2006D080:BIO routines:BIO_new_file:no such file:…/crypto/bio/bss_file.c:76:
unable to load Private Key
Can’t open data/rsa_key.der for reading, No such file or directory
140579742893184:error:02001002:system library:fopen:No such file or directory:…/crypto/bio/bss_file.c:69:fopen(‘data/rsa_key.der’,‘rb’)
140579742893184:error:2006D080:BIO routines:BIO_new_file:no such file:…/crypto/bio/bss_file.c:76:
unable to load Private Key
[2021-01-08 19:57:00.303][bitwarden_rs][ERROR] Error creating keys, exiting…

How to resolve that?
Thanks!

It looks like the data folder/volume isn’t configured correctly.
Could you post your docker run command? Or docker-compose file?

I concur with BlackDex