I am running MySQL 5.7.20 in a docker container created using the official MySQL docker image. The MySQL conf file needs to be mounted on the host Ubuntu system.
Currently the MySQL docker container is started using the command
sudo docker run -d \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=test \
-v /root/test/mysql/var/lib:/var/lib/mysql \
-v /root/test/mysql/etc:/etc/mysql \
--name test-mysql \
mysql:5.7
However there are no conf files in /root/test/mysql/etc
... Connected to the docker container's bash and found that /etc/mysql
is empty!
Where are the conf files located? Shouldnt there be some in /etc/mysql/conf.d/
and /etc/mysql/mysql.conf.d/
?
/root/test/mysql/etc
then start the Docker container using the command stated in the question./root/test/mysql/etc
gets created, but it is still empty... Am I doing something wrong? – Angular