当前位置:网站首页>Docker部署Mysql
Docker部署Mysql
2022-06-13 09:51:00 【liyinchi1988】
1、查看可安装镜像版本
docker search mysql访问 MySQL 镜像库地址:Docker Hub
可以通过 Sort by 查看其他版本的 MySQL,默认是最新版本 mysql:latest
2、拉取镜像
docker pull mysql:5.7
3、启动容器
docker run -itd --name mysql-test -p 3306:3306 -e MYSQL_ROOT_PASSWORD='[email protected]#123' mysql:5.7参数说明:
- -p 3306:3306:映射容器服务的 3306 端口到宿主机的 3306 端口,外部主机可以直接通过宿主机ip:3306 访问到 MySQL 的服务。
- MYSQL_ROOT_PASSWORD=123456:设置 MySQL 服务 root 用户的密码。
4.查看容器情况
通过 docker ps 命令查看是否安装成功
docker ps -a边栏推荐
- The rise of cloud computing enterprises and the shaking of Oracle database market dominance
- 英国出台粮食安全计划抵御粮食供应危机
- Consolas-with-Yahei
- Classes and objects -- polymorphic
- 一篇文章读懂:Spark运行模式
- Summary of random number learning
- UNIX Environment advanced programming --8- process control ---8.5 function exit-8.6 function wait and waitpid
- Programming principles
- Matlab hub motor analysis fuzzy PID control vertical vibration analysis
- Apple zoom! It's done so well
猜你喜欢

Node-RED系列(二七):扩展节点之s7节点的使用说明

Exercise 7-10 finding specified characters (15 points)

Figure: concept of figure

检验冗余码是否出错题型解法-摘录

Overloading of typical operators

Classes and objects -- Inheritance

Tree and binary tree: basic operation and implementation of binary tree

ThingsBoard教程(二十):使用规则链过滤遥测数据

GPIO of hardware schematic diagram

C# Oracle 多表查询
随机推荐
Talk about the bottom playing method of C # method overloading
GPIO of hardware schematic diagram
Trees and binary trees: the concept of binary trees
How to calculate ASCII code value and how to calculate arccos value
VGA common resolution and calculation method
Information document management and configuration management
Knowledge points of silicon steel sheet
Trees and binary trees: Construction of binary trees
Acwing 787. Merge sort
Classes and objects -- polymorphic
Thingsboard tutorial (20): filtering telemetry data using regular chains
(state compression dp+good) acwing 291 Mondrian's dream
Protocol UART of schematic diagram
(dp+ memory) acwing 901 skiing
Node red series (24): use MySQL nodes in node red to add, delete, modify and query databases
Sequential representation of linear tables
五分钟内编写Pytorch模型
[51nod p2653] interval XOR [bit operation]
7-3 virus traceability (20 points)
冗余码题型--后面加0的区别