Possible missing non-directory attribute in the database file
Juansecu opened this issue · 2 comments
Hi. I'm trying to use a Docker container with the database file, and when I create the Docker container using the CLI, there are no issues, but when I try to create the Docker container using Docker Compose, the database file is considered as a directory.
Do you know what could be the cause?
By the way, I attach a screenshot of the Docker Compose I'm using to create the container.
![image](https://private-user-images.githubusercontent.com/43616657/258657829-0ffdc1d7-c730-4b53-8fcf-d02b44fca4e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3Mzk1ODIsIm5iZiI6MTcyMTczOTI4MiwicGF0aCI6Ii80MzYxNjY1Ny8yNTg2NTc4MjktMGZmZGMxZDctYzczMC00YjUzLThmY2YtZDAyYjQ0ZmNhNGU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIzVDEyNTQ0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzOWY1Y2EwZTBhODU3ZjcwNmRhNGY2MWU4MzI1NjFkODU2OTdjNjgzMWFkZTI2ZTQ0OTM1OWI2YjVkMzE5ZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nEQJq6bY50sLHdkHij5UxxdfGRCskxksYQ1UmeCxEuc)
![image](https://private-user-images.githubusercontent.com/43616657/258657935-938e7f16-8355-484a-9a10-7002bc33ba2b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3Mzk1ODIsIm5iZiI6MTcyMTczOTI4MiwicGF0aCI6Ii80MzYxNjY1Ny8yNTg2NTc5MzUtOTM4ZTdmMTYtODM1NS00ODRhLTlhMTAtNzAwMmJjMzNiYTJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIzVDEyNTQ0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzMGZiMDUxYzZlMWMyODI1MGYxNjdjZTRmZmRhYTE5NmQ2MzM1NjY4NzRkOGRlMGEzZmM5N2EzMTZiYjA0YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.AySdCUPbVbfCZ2Qg_HAQJwy_2nzGeRvPTwfe2F6STOc)
Sorry, just now getting the chance to look at this.
Just an FYI, Docker support for OF is minimal. The biggest caveat is that we're currently leaving it up to the user to configure the database (as you've discovered).
I'm pretty sure your problem is that your volume is configured incorrectly. You're trying to use the database file as a volume. Volumes in docker are file systems and can be thought of as a folder where you can store arbitrary files.
I think what you want is a folder containing your database.db, and then you can point your volume to that folder. You would probably also have to change the path to the database file in your config.ini to account for that. Hope that helps!
Closing as this is a docker configuration issue and not anything wrong with the Docker image.