laradoc mysql acccess_安装之后,启动mysql容器失败

今天早上下了最新的docker,

按照安装说明构建容器之后,

$ sudo docker-compose build

..

$ sudo docker-compose up

..

mysql_1 | mysqld(_start+0x2a)[0x5576d70b380a]

mysql_1 | The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains

mysql_1 | information that should help you find out what is causing the crash.

yii2fecshopdocker_mysql_1 exited with code 2

mysql_1 | 2018-04-27T10:45:14.932609Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

mysql_1 | 2018-04-27T10:45:14.978054Z 0 [Note] mysqld (mysqld 5.7.22) starting as process 1 ...

mysql_1 | 2018-04-27T10:45:14.981536Z 0 [Note] InnoDB: PUNCH HOLE support available

mysql_1 | 2018-04-27T10:45:14.981555Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

mysql_1 | 2018-04-27T10:45:14.981560Z 0 [Note] InnoDB: Uses event mutexes

mysql_1 | 2018-04-27T10:45:14.981565Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier

mysql_1 | 2018-04-27T10:45:14.981571Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3

mysql_1 | 2018-04-27T10:45:14.981575Z 0 [Note] InnoDB: Using Linux native AIO

mysql_1 | 2018-04-27T10:45:14.981862Z 0 [Note] InnoDB: Number of pools: 1

mysql_1 | 2018-04-27T10:45:14.981985Z 0 [Note] InnoDB: Using CPU crc32 instructions

mysql_1 | 2018-04-27T10:45:14.983991Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M

mysql_1 | 2018-04-27T10:45:14.993880Z 0 [Note] InnoDB: Completed initialization of buffer pool

mysql_1 | 2018-04-27T10:45:14.996690Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().

mysql_1 | 2018-04-27T10:45:15.108240Z 0 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4800!

mysql_1 | 2018-04-27 10:45:15 0x7f6a46cd2740 InnoDB: Assertion failure in thread 140094431110976 in file ut0ut.cc line 942

...

(注意到启动mysql容器时发出了一个错误日志)

而在之后启动PHP容器时爆出错误

$ sudo docker-compose exec mysql bash

ERROR: Container 37b60f56a60538181902cef72daee860d9e32a358e583c7f740a39a6dc472874 is restarting, wait until the container is running

看看容器状态

$ sudo docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

053fa3f8c9f9 nginx:latest "nginx -g 'daemon ..." 18 hours ago Up About an hour 0.0.0.0:80->80/tcp yii2fecshopdocker_web_1

0dd280bd5317 yii2fecshopdocker_php "docker-php-entryp..." 18 hours ago Up About an hour 9000/tcp yii2fecshopdocker_php_137b60f56a605 mysql:5.7 "docker-entrypoint..." 18 hours ago Restarting (2) 42 minutes ago yii2fecshopdocker_mysql_13731c78bf86c hightman/xunsearch:latest "sh bin/xs-docker.sh" 18 hours ago Up About an hour 8383-8384/tcp yii2fecshopdocker_xunsearch_1

5b0fcc6f9a69 mongo:3.7 "docker-entrypoint..." 18 hours ago Up About an hour 0.0.0.0:27017->27017/tcp yii2fecshopdocker_mongodb_1

94b21bb4a642 redis:4.0 "docker-entrypoint..." 18 hours ago Up About an hour 0.0.0.0:6379->6379/tcp yii2fecshopdocker_redis_1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值