mysql起不来,启动zabbix的容器报错


按照官网文档做的,mysql起不来,不知道有遇到这种问题的大神么,google了下,其他人也没遇到这种问题
docker pull zabbix/zabbix-web-nginx-mysql
docker run --name some-zabbix-web-nginx-mysql -p 80:80 -e DB_SERVER_HOST="192.168.0.1" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="192.168.0.1" -it zabbix/zabbix-web-nginx-MySQL
docker 的log显示:
$ docker logs 00884485dbab [23:33:15]
** Deploying Zabbix frontend (apache) with mysql database
** Preparing the system
** Preparing Zabbix web-interface
********************
* DB_SERVER_HOST: 192.168.0.1
* DB_SERVER_PORT: 3306
* DB_SERVER_DBNAME: zabbix
* DB_SERVER_ZBX_USER: some-user
* DB_SERVER_ZBX_PASS: some-password
********************
**** MySQL server is not available. Waiting 5 seconds...
**** MySQL server is not available. Waiting 5 seconds...
**** MySQL server is not available. Waiting 5 seconds...
**** MySQL server is not available. Waiting 5 seconds...
**** MySQL server is not available. Waiting 5 seconds...
官方文档的地址:
https://hub.docker.com/r/zabbi ... ysql/
已邀请:

xiphis

赞同来自:


不是写的很明白么,mysql没起来。

这个镜像里面不包含mysql,要你自己启动mysql服务,然后在这个镜像启动时,用环境变量把mysql server的地址传进去。

小宇

赞同来自:


楼主好,后来你是怎么解决的了,可以分享一下吗

要回复问题请先登录注册