When running the docker-compose for the first time I hit this error.
mysql_1 | ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied
This is due to the volume mounted from ./env/mysql into /docker-entrypoint-initdb.d/. The folders env/ and env/mysql need specific permissions but were only 700 under my username when I extracted the zip file. I changed it to 775 and it now works.
Maybe worth a doc suggestion, although I notice nobody else seems to have ran into this problem so I am curious if may just be me.
In my case, the problem occurs on a raspberrypi 4 aarch64 GNU/Linux.
On a virtual machine with debian x86_64 GNU/Linux it is okay. No mysql_1 error massage.
When running the docker-compose for the first time I hit this error.
mysql_1 | ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied
This is due to the volume mounted from ./env/mysql into /docker-entrypoint-initdb.d/. The folders env/ and env/mysql need specific permissions but were only 700 under my username when I extracted the zip file. I changed it to 775 and it now works.
Maybe worth a doc suggestion, although I notice nobody else seems to have ran into this problem so I am curious if may just be me.