lippserd / docker-compose-icinga

docker-compose Icinga stack
92 stars 85 forks source link

Permission error with mysql service, docker-entrypoint-initdb.d permission denied #49

Open adamparker opened 1 year ago

adamparker commented 1 year ago

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.

ryanrudak commented 11 months ago

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.