按说这配置也不算太差吧,但是我不知道是哪里有问题,不确定是不是这镜像设计的有问题,反正我用docker-compose安装的时候,在Waiting for mysql ready的地方等了将近二十分钟,我一直怀疑是哪里出了问题,各种折腾用了一天,就是过不去。
正当我要放弃使用docker的时候,我把它扔那放了十五分钟,居然成功了!!!
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
Feb 25 03:07:30 7575bd63ffc1 syslog-ng[19]: syslog-ng starting up; version=‘3.13.2’
*** Booting runit daemon…
*** Runit started as PID 28
*** Running /scripts/start.py…
Feb 25 03:07:31 7575bd63ffc1 cron[34]: (CRON) INFO (pidfile fd = 3)
Feb 25 03:07:31 7575bd63ffc1 cron[34]: (CRON) INFO (Running @reboot jobs)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ (113)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ (113)”)
…