1、安装 pip

yum -y install epel-release

yum install python-pip

2、安装 runlike

pip install runlike

3 、查看

runlike -p mysql

# 返回结果
docker run \
--name=mysql \
--hostname=62f507534d2b \
--env=MYSQL_ROOT_PASSWORD=123456 \
--env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
--env=GOSU_VERSION=1.7 \
--env=MYSQL_MAJOR=5.7 \
--env=MYSQL_VERSION=5.7.29-1debian9 \
--volume=/usr/local/mysql/conf:/etc/mysql/conf.d \
--volume=/usr/local/mysql/data:/var/lib/mysql \
--volume=/var/lib/mysql \
-p 3306:3306 \
--expose=33060 \
--restart=no \
--detach=true \
mysql:5.7 \
mysqld