1.mysql-server:latest
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| docker run \ --name=mysql-server \ --hostname=1ee896ca9ff2 \ --mac-address=02:42:ac:11:00:03 \ --env=MYSQL_USER=zabbix \ --env=MYSQL_PASSWORD=zabbix_pwd \ --env=MYSQL_ROOT_PASSWORD=admins \ --env=MYSQL_DATABASE=zabbix \ --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ --env=MYSQL_UNIX_PORT=/var/lib/mysql/mysql.sock \ --volume=/opt/docker/mysql:/var/lib/mysql \ -p 3307:3306 \ --expose=33060 \ --expose=33061 \ --restart=always \ --runtime=runc \ --detach=true \ -t \ mysql/mysql-server:latest \ --character-set-server=utf8 --collation-server=utf8_bin
|
1 2 3 4 5 6 7 8 9
| docker run --name mysql-server -t \ -p 3307:3306 \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix_pwd" \ -e MYSQL_ROOT_PASSWORD="admins" \ -d mysql/mysql-server:latest \ -v /opt/docker/mysql:/var/lib/mysql \ --character-set-server=utf8 --collation-server=utf8_bin
|
2.zabbix-java-gateway:latest
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| docker run \ --name=zabbix-java-gateway \ --hostname=efb2eb7c28dd \ --user=1997 \ --mac-address=02:42:ac:11:00:02 \ --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/default-jvm/bin/ \ --env=TERM=xterm \ --env=ZBX_VERSION=5.4.5 \ --env=ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git \ --env=JAVA_HOME=/usr/lib/jvm/default-jvm \ --volume=/usr/sbin/zabbix_java/ext_lib \ --workdir=/var/lib/zabbix \ --expose=10052 \ --restart=always \ --label='org.opencontainers.image.authors=Alexey Pustovalov ' \ --label='org.opencontainers.image.licenses=GPL v2.0' \ --label='org.opencontainers.image.created=2021-10-12T16:33:00.412Z' \ --label='org.opencontainers.image.title=Zabbix Java Gateway' \ --label='org.opencontainers.image.source=https://git.zabbix.com/scm/zbx/zabbix.git' \ --label='org.opencontainers.image.description=Zabbix Java Gateway performs native support for monitoring JMX applications' \ --label='org.opencontainers.image.url=https://zabbix.com/' \ --label='org.opencontainers.image.revision=511bea4206b45a2fcdd5903659f782ede13fd957' \ --label='org.opencontainers.image.vendor=Zabbix LLC' \ --label='org.opencontainers.image.version=5.4.5' \ --label='org.opencontainers.image.documentation=https://www.zabbix.com/documentation/5.4/manual/installation/containers' \ --runtime=runc \ --detach=true \ -t \ zabbix/zabbix-java-gateway:latest \ /usr/sbin/zabbix_java_gateway
|
3.zabbix-server-mysql:latest
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| docker run \ --name=zabbix-server-mysql \ --hostname=ae828a5e1f6d \ --user=1997 \ --mac-address=02:42:ac:11:00:04 \ --env=DB_SERVER_PORT=3307 \ --env=MYSQL_DATABASE=zabbix \ --env=MYSQL_USER=root \ --env=MYSQL_PASSWORD=admins \ --env=MYSQL_ROOT_PASSWORD=admins \ --env=ZBX_JAVAGATEWAY=zabbix-java-gateway \ --env=DB_SERVER_HOST=X.X.X.X(数据库ip地址) \ --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ --env=TERM=xterm \ --env=ZBX_VERSION=5.4.5 \ --env=ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git \ --env=MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs \ --env=MIBS=+ALL \ --volume=/var/lib/zabbix/export \ --volume=/var/lib/zabbix/snmptraps \ --workdir=/var/lib/zabbix \ -p 10051:10051 \ --link zabbix-java-gateway \ --link mysql-server:mysql \ --restart=always \ --label='org.opencontainers.image.vendor=Zabbix LLC' \ --label='org.opencontainers.image.url=https://zabbix.com/' \ --label='org.opencontainers.image.created=2021-10-12T16:32:58.942Z' \ --label='org.opencontainers.image.licenses=GPL v2.0' \ --label='org.opencontainers.image.title=Zabbix server (MySQL)' \ --label='org.opencontainers.image.revision=511bea4206b45a2fcdd5903659f782ede13fd957' \ --label='org.opencontainers.image.documentation=https://www.zabbix.com/documentation/5.4/manual/installation/containers' \ --label='org.opencontainers.image.version=5.4.5' \ --label='org.opencontainers.image.source=https://git.zabbix.com/scm/zbx/zabbix.git' \ --label='org.opencontainers.image.description=Zabbix server with MySQL database support' \ --label='org.opencontainers.image.authors=Alexey Pustovalov ' \ --runtime=runc \ --detach=true \ -t \ zabbix/zabbix-server-mysql:latest \ /usr/sbin/zabbix_server --foreground -c /etc/zabbix/zabbix_server.conf
|
4.zabbix-web-nginx-mysql:latest
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| docker run \ --name=zabbix-web-nginx-mysql \ --hostname=6d0283b71e3f \ --user=1997 \ --mac-address=02:42:ac:11:00:05 \ --env=DB_SERVER_HOST=X.X.X.X(数据库ip地址) \ --env=DB_SERVER_PORT=3307 \ --env=MYSQL_DATABASE=zabbix \ --env=MYSQL_USER=zabbix \ --env=MYSQL_PASSWORD=zabbix_pwd \ --env=MYSQL_ROOT_PASSWORD=admins \ --env=PHP_TZ=Asia/Shanghai \ --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ --env=TERM=xterm \ --env=ZBX_VERSION=5.4.5 \ --env=ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git \ --workdir=/usr/share/zabbix \ -p 80:8080 \ --expose=8443 \ --link zabbix-server-mysql:zabbix-server \ --link mysql-server:mysql \ --restart=always \ --label='org.opencontainers.image.vendor=Zabbix LLC' \ --label='org.opencontainers.image.source=https://git.zabbix.com/scm/zbx/zabbix.git' \ --label='org.opencontainers.image.url=https://zabbix.com/' \ --label='org.opencontainers.image.version=5.4.5' \ --label='org.opencontainers.image.authors=Alexey Pustovalov ' \ --label='org.opencontainers.image.revision=511bea4206b45a2fcdd5903659f782ede13fd957' \ --label='org.opencontainers.image.documentation=https://www.zabbix.com/documentation/5.4/manual/installation/containers' \ --label='org.opencontainers.image.description=Zabbix web-interface based on Nginx web server with MySQL database support' \ --label='org.opencontainers.image.title=Zabbix web-interface (Nginx, MySQL)' \ --label='org.opencontainers.image.licenses=GPL v2.0' \ --label='org.opencontainers.image.created=2021-10-12T16:37:52.858Z' \ --runtime=runc \ --detach=true \ -t \ zabbix/zabbix-web-nginx-mysql:latest
|