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流量比较好。
root@firefly:~# lsmod | grep bbr
tcp_bbr 16384 3
root@firefly:~# uname -r
4.17.0-rc6
复制代码
我用过check-config.sh
https://raw.githubusercontent.co ... rib/check-config.sh
测试过我编译内核的选项
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- apparmor: enabled and tools installed
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled (as module)
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_NF_NAT_IPV4: enabled (as module)
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: enabled (as module)
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled
Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: enabled (as module)
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: enabled
- CONFIG_IP_VS: enabled (as module)
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
- "overlay":
- CONFIG_VXLAN: enabled (as module)
Optional (for encrypted networks):
- CONFIG_CRYPTO: enabled
- CONFIG_CRYPTO_AEAD: enabled
- CONFIG_CRYPTO_GCM: enabled
- CONFIG_CRYPTO_SEQIV: enabled
- CONFIG_CRYPTO_GHASH: enabled
- CONFIG_XFRM: enabled
- CONFIG_XFRM_USER: enabled
- CONFIG_XFRM_ALGO: enabled
- CONFIG_INET_ESP: enabled (as module)
- CONFIG_INET_XFRM_MODE_TRANSPORT: enabled (as module)
- "ipvlan":
- CONFIG_IPVLAN: enabled (as module)
- "macvlan":
- CONFIG_MACVLAN: enabled (as module)
- CONFIG_DUMMY: enabled (as module)
- "ftp,tftp client in container":
- CONFIG_NF_NAT_FTP: enabled (as module)
- CONFIG_NF_CONNTRACK_FTP: enabled (as module)
- CONFIG_NF_NAT_TFTP: enabled (as module)
- CONFIG_NF_CONNTRACK_TFTP: enabled (as module)
- Storage Drivers:
- "aufs":
- CONFIG_AUFS_FS: missing
- "btrfs":
- CONFIG_BTRFS_FS: enabled
- CONFIG_BTRFS_FS_POSIX_ACL: enabled
- "devicemapper":
- CONFIG_BLK_DEV_DM: enabled (as module)
- CONFIG_DM_THIN_PROVISIONING: enabled (as module)
- "overlay":
- CONFIG_OVERLAY_FS: enabled (as module)
- "zfs":
- /dev/zfs: missing
- zfs command: missing
- zpool command: missing
Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000
复制代码
但安装docker时,卡在了。
Setting up docker-ce (17.09.0~ce-0~ubuntu)
复制代码
求教,docker内核编译方法。
上边检测结果的 (as module),我都编译了相关模块,并安装到lib目录下。现在附上配置
配置.zip
2018-6-11 14:44 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
40.94 KB, 下载次数: 10, 下载积分: 灯泡 -1 , 经验 -1
内核config和模块目录
作者:
luvings
时间:
2018-6-11 15:21
as module 直接编译进内核看看
作者:
不足道也
时间:
2018-6-12 00:31
今天查看
dmesg
复制代码
出现这样的报错。
[ 526.689515] ipv6: Unknown symbol l3mdev_link_scope_lookup (err 0)
[ 526.690180] ipv6: Unknown symbol l3mdev_fib_table_rcu (err 0)
[ 526.690754] ipv6: Unknown symbol l3mdev_fib_table_by_index (err 0)
[ 526.692150] ipv6: Unknown symbol l3mdev_update_flow (err 0)
[ 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