Firefly开源社区

标题: ROC-3328-CC,安装docker-ce,需要怎样编译内核 [打印本页]

作者: 不足道也    时间: 2018-6-11 12:16
标题: ROC-3328-CC,安装docker-ce,需要怎样编译内核
本帖最后由 不足道也 于 2018-6-11 14:44 编辑

最近ROC-3328-CC,内核获得了kernel主线支持,目前我是用的内核是4.17.0-rc6。这个版本的内核,支持bbr,加速tcp流量比较好。
  1. root@firefly:~# lsmod | grep bbr
  2. tcp_bbr                16384  3
  3. root@firefly:~# uname -r
  4. 4.17.0-rc6
复制代码

我用过check-config.shhttps://raw.githubusercontent.co ... rib/check-config.sh测试过我编译内核的选项
  1. Generally Necessary:
  2. - cgroup hierarchy: properly mounted [/sys/fs/cgroup]
  3. - apparmor: enabled and tools installed
  4. - CONFIG_NAMESPACES: enabled
  5. - CONFIG_NET_NS: enabled
  6. - CONFIG_PID_NS: enabled
  7. - CONFIG_IPC_NS: enabled
  8. - CONFIG_UTS_NS: enabled
  9. - CONFIG_CGROUPS: enabled
  10. - CONFIG_CGROUP_CPUACCT: enabled
  11. - CONFIG_CGROUP_DEVICE: enabled
  12. - CONFIG_CGROUP_FREEZER: enabled
  13. - CONFIG_CGROUP_SCHED: enabled
  14. - CONFIG_CPUSETS: enabled
  15. - CONFIG_MEMCG: enabled
  16. - CONFIG_KEYS: enabled
  17. - CONFIG_VETH: enabled (as module)
  18. - CONFIG_BRIDGE: enabled (as module)
  19. - CONFIG_BRIDGE_NETFILTER: enabled (as module)
  20. - CONFIG_NF_NAT_IPV4: enabled (as module)
  21. - CONFIG_IP_NF_FILTER: enabled (as module)
  22. - CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
  23. - CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
  24. - CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
  25. - CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
  26. - CONFIG_IP_NF_NAT: enabled (as module)
  27. - CONFIG_NF_NAT: enabled (as module)
  28. - CONFIG_NF_NAT_NEEDED: enabled
  29. - CONFIG_POSIX_MQUEUE: enabled

  30. Optional Features:
  31. - CONFIG_USER_NS: enabled
  32. - CONFIG_SECCOMP: enabled
  33. - CONFIG_CGROUP_PIDS: enabled
  34. - CONFIG_MEMCG_SWAP: enabled
  35. - CONFIG_MEMCG_SWAP_ENABLED: enabled
  36. - CONFIG_BLK_CGROUP: enabled
  37. - CONFIG_BLK_DEV_THROTTLING: enabled
  38. - CONFIG_IOSCHED_CFQ: enabled
  39. - CONFIG_CFQ_GROUP_IOSCHED: enabled
  40. - CONFIG_CGROUP_PERF: enabled
  41. - CONFIG_CGROUP_HUGETLB: missing
  42. - CONFIG_NET_CLS_CGROUP: enabled (as module)
  43. - CONFIG_CGROUP_NET_PRIO: enabled
  44. - CONFIG_CFS_BANDWIDTH: enabled
  45. - CONFIG_FAIR_GROUP_SCHED: enabled
  46. - CONFIG_RT_GROUP_SCHED: enabled
  47. - CONFIG_IP_VS: enabled (as module)
  48. - CONFIG_IP_VS_NFCT: enabled
  49. - CONFIG_IP_VS_RR: enabled (as module)
  50. - CONFIG_EXT4_FS: enabled
  51. - CONFIG_EXT4_FS_POSIX_ACL: enabled
  52. - CONFIG_EXT4_FS_SECURITY: enabled
  53. - Network Drivers:
  54.   - "overlay":
  55.     - CONFIG_VXLAN: enabled (as module)
  56.       Optional (for encrypted networks):
  57.       - CONFIG_CRYPTO: enabled
  58.       - CONFIG_CRYPTO_AEAD: enabled
  59.       - CONFIG_CRYPTO_GCM: enabled
  60.       - CONFIG_CRYPTO_SEQIV: enabled
  61.       - CONFIG_CRYPTO_GHASH: enabled
  62.       - CONFIG_XFRM: enabled
  63.       - CONFIG_XFRM_USER: enabled
  64.       - CONFIG_XFRM_ALGO: enabled
  65.       - CONFIG_INET_ESP: enabled (as module)
  66.       - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled (as module)
  67.   - "ipvlan":
  68.     - CONFIG_IPVLAN: enabled (as module)
  69.   - "macvlan":
  70.     - CONFIG_MACVLAN: enabled (as module)
  71.     - CONFIG_DUMMY: enabled (as module)
  72.   - "ftp,tftp client in container":
  73.     - CONFIG_NF_NAT_FTP: enabled (as module)
  74.     - CONFIG_NF_CONNTRACK_FTP: enabled (as module)
  75.     - CONFIG_NF_NAT_TFTP: enabled (as module)
  76.     - CONFIG_NF_CONNTRACK_TFTP: enabled (as module)
  77. - Storage Drivers:
  78.   - "aufs":
  79.     - CONFIG_AUFS_FS: missing
  80.   - "btrfs":
  81.     - CONFIG_BTRFS_FS: enabled
  82.     - CONFIG_BTRFS_FS_POSIX_ACL: enabled
  83.   - "devicemapper":
  84.     - CONFIG_BLK_DEV_DM: enabled (as module)
  85.     - CONFIG_DM_THIN_PROVISIONING: enabled (as module)
  86.   - "overlay":
  87.     - CONFIG_OVERLAY_FS: enabled (as module)
  88.   - "zfs":
  89.     - /dev/zfs: missing
  90.     - zfs command: missing
  91.     - zpool command: missing

  92. Limits:
  93. - /proc/sys/kernel/keys/root_maxkeys: 1000000
复制代码


但安装docker时,卡在了。
  1. Setting up docker-ce (17.09.0~ce-0~ubuntu)
复制代码

求教,docker内核编译方法。
上边检测结果的 (as module),我都编译了相关模块,并安装到lib目录下。现在附上配置

配置.zip

40.94 KB, 下载次数: 10, 下载积分: 灯泡 -1 , 经验 -1

内核config和模块目录


作者: luvings    时间: 2018-6-11 15:21
as module 直接编译进内核看看
作者: 不足道也    时间: 2018-6-12 00:31
今天查看
  1. dmesg
复制代码

出现这样的报错。
  1. [  526.689515] ipv6: Unknown symbol l3mdev_link_scope_lookup (err 0)
  2. [  526.690180] ipv6: Unknown symbol l3mdev_fib_table_rcu (err 0)
  3. [  526.690754] ipv6: Unknown symbol l3mdev_fib_table_by_index (err 0)
  4. [  526.692150] ipv6: Unknown symbol l3mdev_update_flow (err 0)
  5. [  526.693003] ipv6: Unknown symbol l3mdev_master_ifindex_rcu (err 0)
复制代码


作者: wc45612301    时间: 2019-1-3 11:59
楼主,同样的问题,3328上怎么装docker
作者: wx_RAst6    时间: 2021-2-26 14:47
有没有相关的指导
作者: chenlifeng    时间: 2021-10-12 00:33
3328上怎么装docker
作者: chenlifeng    时间: 2021-10-16 10:40
如何安装呢




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1