I just wanted to point out something, if using docker run
command in terminal and not docker-compose, this would be the command:
docker run -e MYSQL_ROOT_PASSWORD=password mysql_image
Just notice that it won’t work if you put -e MYSQL_ROOT_PASSWORD=password
after mysql_image