Accessing a db inside a docker container

If you mount a non-existing file into a container it will not work: a directory named as your non-existing file is created on your Docker-host.
So for sqlite you have to create an empty file before starting the container for the first time - otherwise you will run into problems described above.