docker pull redis
docker run -itd --name redis -p 6379:6379 redis --requirepass "123456"

mysql+持久化参考
https://www.cnblogs.com/blogof-fusu/p/16710871.html

docker run \
-p 3306:3306 \
--name mysql \
--privileged=true \
--restart unless-stopped \
-v /root/mysql/conf.d:/etc/mysql/conf.d \
-v /root/mysql/logs:/logs \
-v /root/mysql/data:/var/lib/mysql \
-v /etc/localtime:/etc/localtime \
-e MYSQL_ROOT_PASSWORD=wuzbin \
-d mysql:latest