docker下载源配置
1、安装curl
sudo apt install curl -y
小于 1 分钟
1、安装curl
sudo apt install curl -y
docker run -d \
--name mysql \
-p 3306:3306 \
-v /opt/software/mysql/conf/my.cnf:/etc/mysql/my.cnf \
-v /opt/software/mysql/logs:/logs \
-v /opt/software/mysql/mysql_db:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=123456 \
mysql