2020
11-25
11-25
Docker 部署Mysql 服务和Redis 服务的方法
Docker部署Mysql服务的方法1.拉取Mysql5.6最新版本镜像sudodockerpullmysql:5.62.查看Mysql镜像sudodockerimages3.在home目录下创建需要映射的目录:mkdir-p/home/computer/project/mysql/{conf,log,data}4.运行容器dusodockerrun-p53603:3306--nameiot-mysql\-v/home/computer/project/mysql/conf:/etc/mysql\-v/home/computer/project/mysql/log:/var/log/mysql\-v/home/computer/project/mysql/da...
继续阅读 >