I have a Dockerfile to install MySQL server in a container, which I then start like this:
sudo docker run -t -i 09d18b9a12be /bin/bash
But the MySQL service does not start automatically, I have to manually run (from within the container):
service mysql start
How do I automatically start the MySQL service when I run the docker container?