docker run --name mymysql1 -e MYSQL_ROOT_PASSWORD=myroot1 -d mysql:latest
Where mymysql1 is the name you want to assign to the container, myroot1 is the password to be set for the MySQL root user and latest is a tag indicating you want the latest version of MySQL. Using other tags allows you to install specifc versions. See https://hub.docker.com/_/mysql/ for full list.docker container ls
docker exec -it mymysql1 bash
mysql -u root -p
Enter the root password you provided during the initial "docker run" above\s
To see the MySQL Log use...
docker logs mymysql1