Running mysql in the foreground in centos

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

+4
source share
1 answer

If you run mysqld_safe

CMD ["mysqld_safe"]

The process should be in the foreground and blocked.

However, as the comments above show, there are several official MySQL supported containers that you should use.

+7
source

Source: https://habr.com/ru/post/1547079/


All Articles