我这里的docker zabbix 服务器启用三个容器,如下
[root@ald8 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d52035cfc61d zabbix/zabbix-web-nginx-mysql:latest "docker-entrypoint.sh" 2 seconds ago Up 2 seconds 443/tcp, 0.0.0.0:8668->80/tcp zabbix-web-nginx-mysql
41bb9a573175 zabbix/zabbix-server-mysql:latest "docker-entrypoint.sh" 3 minutes ago Up 3 minutes 0.0.0.0:10051->10051/tcp zabbix-server-mysql
7a8c5033241c mysql:5.7 "docker-entrypoint.s…" 2 hours ago Up 2 hours 3306/tcp, 33060/tcp mysql-server
启动命令如下
# 启动mysql5.7实例
docker run --name mysql-server -t -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime -v /data/mysql5.7/d