I'm using tommylau/mysql docker image which provides mysql installed.
But after all i can't find how to restart mysql service inside running container (there is no mysql service or /etc/init.d/mysqld)
Any idea how to find how to restart mysql?
If you log into the container and attempt to restart the service it will essentially kill the container at the point in which the mysql process stops and therefore it'll never start (as the container has exited).
The best way is to simply restart the container using the following command:
docker restart [ContainerID]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With