本文基于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等多种操作系统。产品规格书:ido-sbc3528 产品手册
内核配置使用check_config.sh脚本检查当前内核配置是否适配docker,该脚本可从github下载:https://github.com/opencontainers/runc/blob/main/script/check-config.sh使用方法参考如下:# ./check_config.sh ./kernel/.config
info: 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: missing
optional 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?pwd=1234提取码:1234内核配置完成后,需重新编译kernel并更新boot分区:#./build.sh kernel安装docker主板上执行以下命令安装docker:linaro@linaro-alip:~$ sudo apt-getupdate
linaro@linaro-alip:~$ curl -ssl https://get.docker.com/ | sudo sh安装过程需要花费大约10分钟安装完成后查看docker版本:linaro@linaro-alip:~$ docker -v
docker version 24.0.2, build cb74dfc
linaro@linaro-alip:~$验证linaro@linaro-alip:~$ sudo docker run hello-world
unable tofindimage 'hello-world:latest'locally
latest:pulling from library/hello-world
70f5ac315c5a:pull complete
digest:sha256:a13ec89cdf897b3e551bd9f89d499db6ff3a7f44c5b9eb8bca40da20eb4ea1fa
status:downloaded newer image forhello-world:latest
[ 1228.015617] docker0: port 1(veth9b45dd3) entered blocking state
[ 1228.015735] docker0: port 1(veth9b45dd3) entered disabled state
[ 1228.017169] device veth9b45dd3 entered promiscuous mode
[ 1228.027619] ipv6: addrconf(netdev_up): veth9b45dd3: link isnot ready
[ 1228.343879] cgroup: cgroup: disabling cgroup2 socket matching due tonet_prio ornet_cls activation
[ 1228.596774] eth0: renamed from vethc46e61e
[ 1228.611961] ipv6: addrconf(netdev_change): veth9b45dd3: link becomes ready
[ 1228.612131] docker0: port 1(veth9b45dd3) entered blocking state
[ 1228.612147] docker0: port 1(veth9b45dd3) entered forwarding state
[ 1228.612346] ipv6: addrconf(netdev_change): docker0: link becomes ready
hello from docker!
this message shows that your installation appears tobeworking correctly.
to generate this message, docker took the following steps:
1. the docker client contacted the docker daemon.
2. the docker daemon pulled the hello-worldimage from the docker hub.
(arm64v8)
3. the docker daemon created anewcontainer from that image which runs the
executablethat produces the output you are currently reading.
4. the docker daemon streamed that output tothe docker client, which sent it
toyour terminal.
to trysomething more ambitious, you can run anubuntu container with:
$ docker run -it ubuntu bash
share images, automate workflows, andmore with afree docker id:
https://hub.docker.com/
for more examples andideas, visit:
https://docs.docker.com/get-starte提示hello from docker!说明docker验证通过
陶瓷电容的电容率分析
为什么电动汽车需要高质量的EMC设计
CDMA移动用户号码簿号码MDN的组成
纺织细纱机配套永磁同步电机的原因浅析
MOSFET是一种应用在模拟电路与数字电路的场效晶体管
RK356X Debian/Ubuntu 系统安装Docker
餐具洁净度检测仪的特性及参数
汽车大灯进水该怎么办?
佛山照明线上举办“匠心绽放 璀璨新光”新品发布会
智慧农业物联网解决方案,农业如何实现智能化
Marvell针对下一代互连汽车推出业界首款802.11ax同步双Wi-Fi解决方案
佳明手持GPS eTrex 329x
我国首次引入招飞宣传智能机器人和AR全息技术
气体检测仪检测时应该注意的事项
如何挑选择合适的低代码开发平台
KGD的目标是为模具提供完整的产品规格
小米MIX NANO5.5英寸上市 小米MIX支持支付宝指纹支付
液晶驱动芯片CN90C4S40可替代PCF85176AU用于智能玩具
[组图]串联型稳压电源
关于电动机变频技术方面的问题