1、安装 rpm -Uvh https://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm yum install -y zabbix-agent vi /root/run.sh
!/bin/bash
/usr/sbin/sshd -D
/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
2、上传 docker commit centos7 centos7zabbix docker login --username=hatqiang registry.cn-shenzhen.aliyuncs.com docker tag 5ba83d525899 registry.cn-shenzhen.aliyuncs.com/hatdocker/centos7ssh:latest docker push registry.cn-shenzhen.aliyuncs.com/hatdocker/centos7ssh:latest 3、拉取 docker pull registry.cn-shenzhen.aliyuncs.com/hatdocker/centos7ssh:latest 4、启动的时候要和zabbixserver的docker互联 docker run -it -p 10022:22 --link zabbixserver:zabbixserver --name "centos7" -d 5ba83d525899 /root/run.sh