mysql8 container fails because mysql user tries to chown without permission
Summary
In the entrypoint.sh script, there are two chown
commands. Chown must be run as root or by the owner of a directory/file. The MySQL user does not have permission to do this in the container. So, a container run fails.
Typically the data directory is going to be volume mounted as a persistent volume. The preferred way would be to mount the volume as read/write.
Steps to reproduce
Run the container
What is the current bug behavior?
Entry point script fails on chown
command
What is the expected correct behavior?
mysql user does not attempt to run chown
. Data directory is mounted read/write.
Relevant logs and/or screenshots
Possible fixes
Comment out the two chown
Defintion of Done
-
Bug has been identified and corrected within the container
/cc @ironbank-notifications/bug