ubuntu – docker网络随机冻结

前端之家收集整理的这篇文章主要介绍了ubuntu – docker网络随机冻结前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有时,我的专用服务器的所有网络都冻结(ssh也无法正常工作).它是随机重复的.

操作系统:Ubuntu 14.04.3 LTS

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

  1. [1568390.415464] IPv6: ADDRCONF(NETDEV_UP): veth70c3620: link is not ready
  2. [1568390.415571] docker0: port 2(vethfd09262) entered forwarding state
  3. [1568390.415575] docker0: port 2(vethfd09262) entered forwarding state
  4. [1568390.415586] IPv6: ADDRCONF(NETDEV_CHANGE): veth70c3620: link becomes ready
  5. [1568390.453889] eth0: renamed from veth70c3620
  6. [1568405.455565] docker0: port 2(vethfd09262) entered forwarding state
  7. [1568490.807194] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
  8. [1568490.839695] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  9. [1568490.873185] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  10. [1568491.213577] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  11. [1568491.248730] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  12. [1568491.292433] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
  13. [1568491.544051] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
  14. [1568491.571716] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
  15. [1568491.605760] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
  16. [1568491.858186] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  17. [1568491.885767] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  18. [1568491.919876] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  19. [1568492.164684] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  20. [1568492.197225] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  21. [1568492.233425] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
  22. [1568502.618191] veth70c3620: renamed from eth0
  23. [1568502.653605] docker0: port 2(vethfd09262) entered disabled state
  24. [1568502.681529] docker0: port 2(vethfd09262) entered disabled state
  25. [1568502.682111] device vethfd09262 left promiscuous mode
  26. [1568502.682113] docker0: port 2(vethfd09262) entered disabled state
  27. [1568503.037301] aufs au_opts_verify:1612:docker[25411]: dirperm1 breaks the protection by the permission bits on the lower branch
  28. [1568503.071988] aufs au_opts_verify:1612:docker[25370]: dirperm1 breaks the protection by the permission bits on the lower branch
  29. [1568503.102768] aufs au_opts_verify:1612:docker[4932]: dirperm1 breaks the protection by the permission bits on the lower branch
  30. [1568503.103562] device veth6cd39d2 entered promiscuous mode
  31. [1568503.103649] IPv6: ADDRCONF(NETDEV_UP): vethffd65cb: link is not ready
  32. [1568503.103702] docker0: port 2(veth6cd39d2) entered forwarding state
  33. [1568503.103706] docker0: port 2(veth6cd39d2) entered forwarding state
  34. [1568503.103719] IPv6: ADDRCONF(NETDEV_CHANGE): vethffd65cb: link becomes ready
  35. [1568503.146365] eth0: renamed from vethffd65cb
  36. [1568518.132006] docker0: port 2(veth6cd39d2) entered forwarding state

Docker信息:

  1. Containers: 40
  2. Images: 538
  3. Storage Driver: aufs
  4. Root Dir: /var/lib/docker/aufs
  5. Backing Filesystem: extfs
  6. Dirs: 618
  7. Dirperm1 Supported: true
  8. Execution Driver: native-0.2
  9. Logging Driver: json-file
  10. Kernel Version: 3.19.0-25-generic
  11. Operating System: Ubuntu 14.04.3 LTS
  12. cpus: 8
  13. Total Memory: 31.29 GiB
  14. Name: crosspromo-inpgngno01.xxxxxxx
  15. ID: EOO2:DMGR:POHZ:VLKM:6KKZ:DX6S:5XIN:X4DA:22HH:L62N:FCI5:O32P
  16. WARNING: No swap limit support

uname -a

  1. 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

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

您正在运行一个已知不能与Docker一起使用的系统.
错误来看,它只是反复崩溃系统.

> AUFS不稳定,已知导致内核恐慌.
> Ubuntu 14正在运行一个缺少容器化关键组件的旧内核
>老版本的Docker,带着bug.

您可以从升级到Ubuntu 16.04 TLS开始(最新的写入时).祝Docker正常运行,默认设置通常不行.

基本上,Docker在大多数系统上完全破碎且不稳定.有关漫长而引人注目的版本,请参阅这些文章

> https://thehftguy.com/2016/11/01/docker-in-production-an-history-of-failure/
> https://thehftguy.com/2017/02/23/docker-in-production-an-update/

猜你在找的Ubuntu相关文章