Use the for loop to import the zabbix image into the container for n in `ls *.tar.gz`;do docker load -i $n ;done Run zabbix-server using docker docker run --name mysql-server -t \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix_pwd" \ -e MYSQL_ROOT_PASSWORD="root_pwd" \ -d mysql:5.7 \ --character-set-server=utf8 --collation-server=utf8_bin docker run --name zabbix-java-gateway -t \ -d zabbix/zabbix-java-gateway:latest docker run --name zabbix-server-mysql -t \ -e DB_SERVER_HOST="mysql-server" \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix_pwd" \ -e MYSQL_ROOT_PASSWORD="root_pwd" \ -e ZBX_JAVAGATEWAY="zabbix-java-gateway" \ --link mysql-server:mysql \ --link zabbix-java-gateway:zabbix-java-gateway \ -p 10051:10051 \ -d zabbix/zabbix-server-mysql:latest docker run --name zabbix-web-nginx-mysql -t \ -e DB_SERVER_HOST="mysql-server" \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix_pwd" \ -e MYSQL_ROOT_PASSWORD="root_pwd" \ --link mysql-server:mysql \ --link zabbix-server-mysql:zabbix-server \ -p 80:80 \ -d zabbix/zabbix-web-nginx-mysql:latest Page visits: The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: An article teaches you how to use js to achieve the barrage effect
>>: CentOS7.5 installation of MySQL8.0.19 tutorial detailed instructions
Scary, isn't it! Translation in the picture: ...
Docker-compose deploys gitlab 1. Install Docker I...
1. Introduction I wrote an article before: The pr...
This article uses an example to illustrate the ex...
When doing database statistics, you often need to...
Click here to return to the 123WORDPRESS.COM HTML ...
Illustrated CentOS 7.3 installation steps for you...
WeChat applet uniapp realizes the left swipe to d...
In front-end projects, attachment uploading is a ...
About Nginx, a high-performance, lightweight web ...
Preface Every time you use Docker to start a Hado...
Table of contents 1. Get the first link first 2. ...
What is HTML? HTML is a language used to describe...
Multi-table query Use a single select statement t...
Preface The previous article introduced the insta...