Blogger Information
Blog 51
fans 0
comment 1
visits 65042
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Dcoker运行mysql5.7镜像
鱼的熊掌
Original
941 people have browsed it
  1. // 下载mysql5.7镜像
  2. docker pull mysql:5.7
  3. // 运行镜像
  4. docker run -d --name mysql57 -p 13306:3306 -v e:/Cache/docker/mysql57:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root -it mysql:5.7
  5. # -d 将容器以后台模式运行
  6. # --name 命名运行的容器名称
  7. # -p 主机端口:容器端口
  8. # -v 将主机上的目录挂载到容器内部,实现数据持久化 主机挂载地址:容器mysql数据地址
  9. # -it 交互式 Bash shell 中运行容器,让您可以在容器内部进行交互
  10. // 进入运行的容器系统内
  11. docker exec -it mysql57 /bin/bash
  12. #docker exec -it <容器名称或容器ID> /bin/bash
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
3 comments
123333 2023-08-18 15:26:49
回复测试回复
2 floor
123333 2023-08-18 15:26:26
回复测试回复测试
1 floor
回复测试回复测试
123333 2023-08-18 15:26:36
Author's latest blog post