Container crashes after about 10-15s with the following logs:
* Starting MySQL database server mysqld
su: warning: cannot change directory to /nonexistent: No such file or directory
...done.
* Starting periodic command scheduler cron
...done.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
* Starting MySQL database server mysqld
su: warning: cannot change directory to /nonexistent: No such file or directory
...fail!
sed: no input files
Possible issue
It seems as though the MySQL process is dying due to not having a homedir set for the mysql user.
Suggested Solution
Add a line to the dockerfile to create the expected homedir. I'll submit a PR which seems to rectify this issue.
Environment:
To reproduce:
Expected result:
Container remains running
Observed behavior:
Container crashes after about 10-15s with the following logs:
Possible issue
It seems as though the MySQL process is dying due to not having a homedir set for the mysql user.
Suggested Solution
Add a line to the dockerfile to create the expected homedir. I'll submit a PR which seems to rectify this issue.