Use this command to run a container with the mysql image:
$ sudo docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=<put your password here> -d mysql
Then get inside your docker container using this command:
$ sudo docker exec -it mysql bash
Once you are inside the container you can startup mysql using this command:
$ mysql -uroot -p
Enter the password you used while creating the container.
Now you should have a mysql server up and running.
Hope this helped :)
Got an interest in learning more about docker join docker training course.