老师好,部署了mysql和wp容器,docker ps看都是运行,但是我看了下wp容器的logs,出现容下的内容,过了几秒,wp容器就自动exit了,查了半天没有看找到答案啊。。。
[root@docker-node1 vagrant]#
[root@docker-node1 vagrant]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12215bf66aa1 wordpress "docker-entrypoint.s…" 3 seconds ago Up 3 seconds 0.0.0.0:8888->80/tcp my-wp
120a02222088 mysql "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 3306/tcp mysql
[root@docker-node1 vagrant]# docker logs my-wp
WordPress not found in /var/www/html - copying now...
Complete! WordPress has been successfully copied to /var/www/html
Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in Standard input code on line 22
Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in Standard input code on line 22
MySQL Connection Error: (2054) The server requested authentication method unknown to the client
Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in Standard input code on line 22
Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in Standard input code on line 22
MySQL Connection Error: (2054) The server requested authentication method unknown to the client
Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in Standard input code on line 22
Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in Standard input code on line 22
MySQL Connection Error: (2054) The server requested authentication method unknown to the client