Download dockerfile:
https://github.com/kenshin17/Scripts/tree/master/docker/mysql57
Build images:
$ docker build -t mysql:5.7 .
Run container mysql
$ docker run --name=mysql57 -e TZ='Asia/Ho_Chi_Minh' -e MYSQL_ROOT_PASSWORD=password -d  -v /data/mysql57/my.cnf:/etc/my.cnf -v /data/mysql57:/data/mysql -v /data/tmp/:/data/tmp/ -p 3307:3306 mysql:5.7
Get mysql password root and change psssword root

If run container without env MYSQL_ROOT_PASSWORD:

$ docker logs mysql57 2>&1 | grep GENERATED

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'newpassword';
docker exec -it mysql57 mysql -uroot -p