I am trying to build a MySQL 8 server running on Ubuntu Focal container, but it exits instantly after started. Don’t get it wrong that the Hub is succeeding, it’s after it’s build it’s failing.
You can see my container here: https://hub.docker.com/repository/docker/emilmoe/mysql/builds
I have noticed some errors during build:
Setting up mysql-server-8.0 (8.0.20-0ubuntu0.20.04.1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of stop. update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Renaming removed key_buffer and myisam-recover options (if present) Cannot stat file /proc/228/fd/0: Permission denied Cannot stat file /proc/228/fd/1: Permission denied
mysqld is running as pid 751 invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Setting up libhttp-date-perl (6.05-1) ...
The errors the docker log gives me after trying to start the container:
2020-05-05T17:45:51.416329Z mysqld_safe Logging to '/var/log/mysql/error.log'. 2020-05-05T17:45:51.438973Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 2020-05-05T17:45:51.832807Z mysqld_safe mysqld from pid file /var/lib/mysql/6590ce322476.pid ended