docker网络随机冻结

Nik*_*ita 6 networking ubuntu docker

有时,我的专用服务器的所有网络都冻结了(ssh 也不工作)。它是随机重复的。

操作系统:Ubuntu 14.04.3 LTS

在服务器上安装了 docker 容器,我在dmesg 日志中看到:

[1568390.415464] IPv6: ADDRCONF(NETDEV_UP): veth70c3620: link is not ready
[1568390.415571] docker0: port 2(vethfd09262) entered forwarding state
[1568390.415575] docker0: port 2(vethfd09262) entered forwarding state
[1568390.415586] IPv6: ADDRCONF(NETDEV_CHANGE): veth70c3620: link becomes ready
[1568390.453889] eth0: renamed from veth70c3620
[1568405.455565] docker0: port 2(vethfd09262) entered forwarding state
[1568490.807194] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568490.839695] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568490.873185] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.213577] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.248730] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.292433] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.544051] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.571716] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.605760] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.858186] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.885767] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.919876] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568492.164684] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568492.197225] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568492.233425] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568502.618191] veth70c3620: renamed from eth0
[1568502.653605] docker0: port 2(vethfd09262) entered disabled state
[1568502.681529] docker0: port 2(vethfd09262) entered disabled state
[1568502.682111] device vethfd09262 left promiscuous mode
[1568502.682113] docker0: port 2(vethfd09262) entered disabled state
[1568503.037301] aufs au_opts_verify:1612:docker[25411]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568503.071988] aufs au_opts_verify:1612:docker[25370]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568503.102768] aufs au_opts_verify:1612:docker[4932]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568503.103562] device veth6cd39d2 entered promiscuous mode
[1568503.103649] IPv6: ADDRCONF(NETDEV_UP): vethffd65cb: link is not ready
[1568503.103702] docker0: port 2(veth6cd39d2) entered forwarding state
[1568503.103706] docker0: port 2(veth6cd39d2) entered forwarding state
[1568503.103719] IPv6: ADDRCONF(NETDEV_CHANGE): vethffd65cb: link becomes ready
[1568503.146365] eth0: renamed from vethffd65cb
[1568518.132006] docker0: port 2(veth6cd39d2) entered forwarding state
Run Code Online (Sandbox Code Playgroud)

码头工人信息:

Containers: 40
Images: 538
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 618
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-25-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 8
Total Memory: 31.29 GiB
Name: crosspromo-inpgngno01.xxxxxxx
ID: EOO2:DMGR:POHZ:VLKM:6KKZ:DX6S:5XIN:X4DA:22HH:L62N:FCI5:O32P
WARNING: No swap limit support
Run Code Online (Sandbox Code Playgroud)

uname -a

Linux crosspromo-inpgngno01.xxxxxxx 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

那么:是 docker 问题,还是上行链路接口坏了?

use*_*461 -1

您正在运行一个已知无法与 Docker 配合使用的系统。 从错误来看,它只是重复地使系统崩溃。

  • AUFS 不稳定并且会导致内核崩溃。
  • Ubuntu 14 运行的是旧内核,缺少容器化的关键组件
  • 老版本的 Docker,充满了错误。

您可以首先升级到 Ubuntu 16.04 TLS(撰写本文时的最新版本)。祝 Docker 正常工作,默认设置通常不会。

基本上,Docker 在大多数系统上都完全崩溃并且不稳定。请参阅这些文章以获得长而戏剧性的版本。