本文基于IDO-SBC3528主板演示Debian/Ubuntu 系统任何安装Docker,方法适用于RK3568全系列产品。
IDO-SBC3528-V1采用RK3568四核64位开发的智能主板,可作为RK3568开发评估板,支持8G大内存;支持PCIE2.0接口,可扩展大容量固态硬盘;支持双千兆以太网口;支持双频WiFi、蓝牙4.2以上,可扩展4G/5G网络通讯功能;具有丰富的视频输出接口(HDMI2.0/eDP1.3/MIPI1.2/LVDS) ;工业互联接口(RS232/RS485、CAN)。
支持Android11/Debian10/Ubuntu20/Buildroot/麒麟OS/开源鸿蒙等多种操作系统。
内核配置
使用check_config.sh脚本检查当前内核配置是否适配Docker,该脚本可从github下载:
https://github.com/opencontainers/runc/blob/main/script/check-config.sh
使用方法参考如下:
# ./check_config.sh ./kernel/.configinfo: reading kernel config from ./kernel/.config ...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: missing-CONFIG_KEYS: enabled-CONFIG_VETH: missing-CONFIG_BRIDGE: missing-CONFIG_BRIDGE_NETFILTER: missing-CONFIG_IP_NF_FILTER: missing-CONFIG_IP_NF_TARGET_MASQUERADE: missing-CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: missing-CONFIG_NETFILTER_XT_MATCH_CONNTRACK: missing-CONFIG_NETFILTER_XT_MATCH_IPVS: missing-CONFIG_IP_NF_NAT: missing-CONFIG_NF_NAT: missing-CONFIG_POSIX_MQUEUE: missingOptional Features:-CONFIG_USER_NS: enabled-CONFIG_SECCOMP: enabled-CONFIG_SECCOMP_FILTER: enabled-CONFIG_CGROUP_PIDS: missing-CONFIG_MEMCG_SWAP: missing-CONFIG_MEMCG_SWAP_ENABLED: missing-CONFIG_BLK_CGROUP: missing-CONFIG_BLK_DEV_THROTTLING: missing-CONFIG_CGROUP_PERF: missing-CONFIG_CGROUP_HUGETLB: missing-CONFIG_NET_CLS_CGROUP: missing-CONFIG_CGROUP_NET_PRIO: missing-CONFIG_CFS_BANDWIDTH: enabled-CONFIG_FAIR_GROUP_SCHED: enabled-CONFIG_RT_GROUP_SCHED: missing-CONFIG_IP_NF_TARGET_REDIRECT: missing-CONFIG_IP_VS: missing-CONFIG_IP_VS_NFCT: missing-CONFIG_IP_VS_PROTO_TCP: missing-CONFIG_IP_VS_PROTO_UDP: missing-CONFIG_IP_VS_RR: missing-CONFIG_SECURITY_SELINUX: missing-CONFIG_SECURITY_APPARMOR: missing
./kernel/.config为当前内核的配置
提示”missing”的选项,需要到kernel目录进行make menuconfig加上,直到执行check_config.sh不再报missing项
这里是我们适配好的内核配置:
链接:https://pan.baidu.com/s/1WoeHLL5DDbSOBjpLLgQofA” />
提示”Hello from Docker!”说明Docker验证通过