docker部署mysql

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

posted @ 2019-06-08 18:34  kuailewangzi1212  阅读(112)  评论(0编辑  收藏  举报