收起左侧

docker网络有问题

3
回复
263
查看
[ 复制链接 ]

19

主题

36

回帖

0

牛值

fnOS系统内测组

2026-5-23 15:51:01 显示全部楼层 阅读模式

系统版本:X86;

设备环境:物理机、局域网、系统fnOS1.1.3104;

BUG现象:最近几个系统版本都有这种情况,就是部署mysql数据库后,当时能使用,但是只要一重启或者升级后,surveyking、mrdoc、hfish这几个项目容器依托于mysql的服务就连不上mysql了,各个容器都是正常的;必须关闭docker后,重置网络才行。

image.png

出现频率:必现

联系方式:19918449666

日志文件:无

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
2026-5-25 14:28:46 显示全部楼层

感谢反馈!有可能是 MySQL 还没完全启动,其他服务就先起来了导致没连上。建议您看下容器日志有没有报错,麻烦导出一份相关日志给我们,顺便试试设置容器启动顺序。

2026-05-18 15:50:49+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.9-1.el9 started. 2026-05-18 15:50:49+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2026-05-18 15:  详情 回复
2026-5-26 16:28

19

主题

36

回帖

0

牛值

fnOS系统内测组

2026-5-26 16:28:14 楼主 显示全部楼层
飞牛运营同学 发表于 2026-5-25 14:28
感谢反馈!有可能是 MySQL 还没完全启动,其他服务就先起来了导致没连上。建议您看下容器日志有没有报错, ...

2026-05-18 15:50:49+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.9-1.el9 started.
2026-05-18 15:50:49+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2026-05-18 15:50:49+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.9-1.el9 started.
2026-05-18 15:50:50+08:00 [Note] [Entrypoint]: Initializing database files
2026-05-18T07:50:50.166187Z 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
2026-05-18T07:50:50.167360Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.4.9) initializing of server in progress as process 81
2026-05-18T07:50:50.172324Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2026-05-18T07:50:50.500507Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2026-05-18T07:50:51.495389Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2026-05-18T07:50:53.423163Z 0 [System] [MY-015018] [Server] MySQL Server Initialization - end.
2026-05-18 15:50:53+08:00 [Note] [Entrypoint]: Database files initialized
2026-05-18 15:50:53+08:00 [Note] [Entrypoint]: Starting temporary server
2026-05-18T07:50:53.502971Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2026-05-18T07:50:53.689960Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.9) starting as process 131
2026-05-18T07:50:53.704208Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2026-05-18T07:50:53.952837Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2026-05-18T07:50:54.218377Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2026-05-18T07:50:54.218405Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2026-05-18T07:50:54.220936Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2026-05-18T07:50:54.242550Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.4.9'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server - GPL.
2026-05-18T07:50:54.242558Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
2026-05-18 15:50:54+08:00 [Note] [Entrypoint]: Temporary server started.
'/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.

2026-05-18 15:50:55+08:00 [Note] [Entrypoint]: Stopping temporary server
2026-05-18T07:50:55.142383Z 10 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.4.9).
2026-05-18T07:50:56.606925Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.4.9)  MySQL Community Server - GPL.
2026-05-18T07:50:56.606934Z 0 [System] [MY-015016] [Server] MySQL Server - end.
2026-05-18 15:50:57+08:00 [Note] [Entrypoint]: Temporary server stopped

2026-05-18 15:50:57+08:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

2026-05-18T07:50:57.167569Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2026-05-18T07:50:57.344948Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.9) starting as process 1
2026-05-18T07:50:57.350833Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2026-05-18T07:50:57.567298Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2026-05-18T07:50:57.799652Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2026-05-18T07:50:57.799670Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2026-05-18T07:50:57.803008Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2026-05-18T07:50:57.827466Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2026-05-18T07:50:57.827510Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.4.9'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
日志,启动顺序还可以设置么,没看到,我全开的开机自动开启

19

主题

36

回帖

0

牛值

fnOS系统内测组

2026-6-3 09:01:45 楼主 显示全部楼层

找到问题了,不能开这个网络中的多网关模式,虽然只有1个网口在使用,但是会影响docker的虚拟网络
image.png

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则