原来好好的,忽然间就跑不起来了,laradock中的myql容器不能通过docker-compose启动了,通过docker-compose logs -f mysql查看日志,发现:

  1. mysql_1 | mysqld: Table 'mysql.plugin' doesn't exist
  2. mysql_1 | 2020-12-04 14:51:20 1 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

通过以下方案解决:
So solution that worked for us was:

  1. stop and remove all containers (docker-compose down)
  2. docker rmi laradock_mysql
  3. docker images rm laradock_mysql
  4. start again (docker-compose up nginx mysql)

原因是这样子的:
So it was the volume that corrupted or permissions issue but we could not access it as you would in non docker, so start again worked. (but it was remove container, image and volume )
https://github.com/laradock/laradock/issues/421

分类: web

标签:   laradock