Docker 命令突然在 Debian 上挂起
我有一台运行 docker (20.10.12) 的 Debian (5.10.92-1) 机器,大约有 15 个左右的容器。
直到昨天它都工作得很好,但现在表现出了一些非常奇怪的行为:
- 重新启动后,一切似乎都正常。
- 在检查容器时,需要传出连接的容器有时会出现卡住的情况。只是卡住了,日志中没有错误等。
- 我在日志中看到一些 DNS 解析错误:external DNS udp:4.2.2.2 did not return any AAAA reports for "fapi.binance.com""
- The host has no Problemreach域
- 设置了两个 DNS 服务器
- 磁盘上有超过 400GB 的可用空间
当我尝试查看卡住的容器的日志时:
- 有时我可以看到它,
- 有时命令只是挂起,我需要关闭该终端。
- daemon.json 使用用于检查容器等的 UI 工具有时会加载并工作,有时会加载并且我可以看到容器的日志,但在尝试重新启动容器时它会冻结,有时该工具会在加载时冻结
。尝试杀死一个容器:
- 有时
- 它会挂起,最终容器消失;从那时起,
文件等,但它不会改变任何东西。
我会删除所有 我尝试重新启动 Docker 守护进程:
- 有时它会重新启动,
- 有时命令会超时
这真的很奇怪,不一致,新的和突然的。
我应该看哪里?
I have a Debian (5.10.92-1) machine running docker (20.10.12) and there are roughly 15 or so containers.
It was working perfectly until yesterday but is now exhibiting some really odd behavior:
- Upon reboot everything seems to work
- When inspecting containers, the ones that require outgoing connections sometimes appear stuck. Just stuck, no errors in the log, etc.
- I see some DNS resolution errors in the logs: external DNS udp:4.2.2.2 did not return any AAAA records for "fapi.binance.com.""
- The host has no problem reaching the domain
- The daemon.json has two DNS servers setup
- There is over 400gb free on the disk
When I try to see the log of a stuck container:
- sometimes I can see it
- sometimes the command just hangs and I need to close that terminal.
- I use the UI tool 'dry' to inspect containers, etc; sometimes, it loads and works, sometimes it loads and I can see a container's log but it'll freeze when trying to restart the containers and sometimes the tool freezes on load.
When I try to kill a container:
- sometimes it'll kill it.
- sometimes it'll hang and eventually the container is gone; from then on, many commands will just freeze.
I pruned all files, etc and it didn't change anything.
When I try to restart the Docker daemon:
- sometimes it'll restart it
- sometimes the command will timeout
This is really odd, inconsistent, new and sudden.
Where should I look at?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论