I have a restrictive umask on my system that only allows me to read the files I create. Recently I tried to start a mysql database with Testcontainers. Testcontainers maps a classpath resource into the config directory of the container. To do this, it first extracts the contents to a temporary location and then uses whatever permissions this temp file has. Due to my umask, the temp file is only readable by me, but not by the user inside the mysql container, resulting in mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 - Permission denied)
I'd suggest that the config files be created with permissions that allow it to be read by the container.