Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running mysql in the foreground in centos

I am building a docker image for a mysql database. For that purpose, I have to run mysql in the foreground and not as a deamon service. I am using a centos base image. How to run mysql in the foreground?

like image 466
Keeto Avatar asked Jul 03 '14 21:07

Keeto


1 Answers

If you run mysqld_safe

CMD ["mysqld_safe"]

The process should be in the foreground and blocking.

However as the comments above suggest, there are several official supported MySQL containers which you should consider using.

like image 153
Marcus Hughes Avatar answered Sep 20 '22 12:09

Marcus Hughes