1、安装zabbix-server
https://www.jianshu.com/p/14d15e776a92
rpm -Uvh https://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
vi /root/run.sh
!/bin/bash
/usr/sbin/sshd -D
/data/mysql/bin/mysqld --defaults-file=/etc/my.cnf --user=mysql &
/data/php/sbin/php-fpm &
/data/nginx/sbin/nginx &
/data/zabbix/sbin/zabbix_server -c /data/zabbix/etc/zabbix_server.conf &
/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf &
2、安装graphtree,wechat
3、保存
docker commit centos7 zabbix3.2
4、启动
docker run -it -p 10022:22 -p 10051:10051 -p 88:80 --name "centos7zabbix" -d zabbix3.2 /root/run.sh