docker run -p 3306:3306 --name mysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=soft -d mysql:latest
转载于:https://www.cnblogs.com/kuailewangzi1212/p/10991332.html
docker run -p 3306:3306 --name mysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=soft -d mysql:latest
转载于:https://www.cnblogs.com/kuailewangzi1212/p/10991332.html