I have the next dockerfile:
FROM ubuntu:16.04
RUN apt-get update && apt-get upgrade -y && apt-get install -y apache2 mysql-server mysql-client
After, Docker build asking me the password root:
While not mandatory, it is highly recommended that you set a password for the
MySQL administrative "root" user.
If this field is left blank, the password will not be changed.
New password for the MySQL "root" user:
I enter the password, but, simply it stays in that state.
Can I install mysql this way?, I do not want to install it automatically
解决方案
Docker way is "one container for one process".
You need one container for apache and one for mysql.
You can use official php image and official mysql image
for linking the containers i recommend use docker-compose