V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Achilless
V2EX  ›  Docker

docker 的 mysql 容器运行一段时间后崩溃

  •  
  •   Achilless · 2019-10-21 14:03:47 +08:00 · 4349 次点击
    这是一个创建于 1620 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近发现博客有时候会挂,发现是 mysql 的容器停了,然后 start 之后恢复了,然后又会不知什么时候自己挂掉 我用的是 docker 官方的 mysql 镜像,启动方式应该也没问题

    docker run --name=mysql1 -p 3306:3306 -d mysql/mysql-server

    docker logs mysql1 只发现这些重复的日志:

    2019-10-20T06:42:28.442743Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.18) starting as process 1 2019-10-20T06:42:29.685793Z 0 [System] [MY-010229] [Server] Starting crash recovery...

    2019-10-20T06:42:29.734558Z 0 [System] [MY-010232] [Server] Crash recovery finished.

    2019-10-20T06:42:29.962637Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.

    2019-10-20T06:42:30.374853Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.18' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.

    2019-10-20T06:42:30.538051Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/run/mysqld/mysqlx.sock' bind-address: '::' port: 33060

    请问我该如何定位容器崩溃的原因。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3347 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:39 · PVG 21:39 · LAX 06:39 · JFK 09:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.