Maybe an error in the description Part-DB-symfony/docs/docker/docker-install.md
Created by: christiannolte
Describe the bug Following the steps from https://github.com/Part-DB/Part-DB-symfony/blob/master/docs/docker/docker-install.md#direct-use-of-docker-image cause a problem
To Reproduce Steps to reproduce the behavior:
-
create a directory media for the volume
-
create a directory uploads for the volume
-
Start the image jbtronics/part-db1:master with the two mentioned volumes given to the container like docker run --rm --name part-db1
-p 9999:80
-e APP_ENV=prod
-v /root/parts/uploads:/var/www/html/uploads
-v /root/parts/media:/var/www/html/public/media
jbtronics/part-db1:master -
Execute Step 4 like mentioned
docker exec --user=www-data part-db1 bin/console doctrine:migrations:migrate
- This will result in an error
In AbstractSQLiteDriver.php line 83:
An exception occurred in driver: SQLSTATE[HY000] [14] unable to open databa se file
In Exception.php line 18:
SQLSTATE[HY000] [14] unable to open database file
In PDOConnection.php line 40:
SQLSTATE[HY000] [14] unable to open database file
Additional context When not using volumes everything is fine. So using volumes is overwriting/overlaying e.g. the database app.db. Maybe there should be a step to create the database in the volume.
Thanks Christian