首页 >>  正文

system+reset

来源:baiyundou.net   日期:2024-07-26

作者:灵昱

伊始

随着边缘计算的发展,将Docker技术应用于边缘设备或节点上,可以更好地处理和分析实时数据。尤其是低功率的设备(RK3288 在5W左右)通过在边缘设备上运行Docker容器,可以减少数据传输延迟,提高数据处理效率,并增强系统的可扩展性和可靠性。因此,在Ubuntu 16上安装和配置Docker,不仅可以在本地环境进行应用程序开发和测试,还可以为边缘计算提供强大的支持。比如搭建NAS,做流媒体服务器等。
本次给各位演示如何在RK3288设备上如何安装docker

全文1500字,阅读预计3-10分钟


一、初始设置

处理器架构: Arm armRK3288
内存闪存: 4G + 16G
操作系统: Ubuntu 16 (内核4.4)
Docer 17.09.1-ce

注意: 由于Ubuntu的内核版本是4.4,对应的Docker版本为16~18。因此,我们下载的是docker-17.09.1-ce.tgz。如果内核版本过低,需要使用较低版本的Docker。

二、环境更新

1、更新环境

  • 运行 sudo apt-get update 更新系统。

  • 执行 sudo apt-get upgrade 更新所有的已安装包。

  • 安装必要的依赖:

更新会有一会,然后执行

安装相关依赖

运行

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

2、下载和安装Docker

执行命令:

wget https://download.docker.com/linux/static/stable/armhf/docker-17.06.0-ce.tgz

解压缩

运行命令

tar -xvf docker-17.06.0-ce.tgz

测试版本是否对应

运行命令

sudo docker version

3、这里程序是可以运行的,现在制作系统启动项

运行命令

sudo cp ./docker/* /usr/bin/

制作docker.server启动文件:

编辑docker文件

sudo vim /lib/systemd/system/docker.servcie

复制以下内容

[Unit]\nDescription=Docker Application Container Engine\nDocumentation=https://docs.docker.com\nAfter=network-online.target firewalld.service containerd.service\nWants=network-online.target\n\n[Service]\nType=notify\n# the default is not to use systemd for cgroups because the delegate issues still\n# exists and systemd currently does not support the cgroup feature set required\n# for containers run by docker\nExecStart=/usr/bin/dockerd --exec-opt native.cgroupdriver=systemd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock\nExecReload=/bin/kill -s HUP $MAINPID\nTimeoutSec=0\nRestartSec=2\nRestart=always\n\n# Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229.\n# Both the old, and new location are accepted by systemd 229 and up, so using the old location\n# to make them work for either version of systemd.\nStartLimitBurst=3\n\n# Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230.\n# Both the old, and new name are accepted by systemd 230 and up, so using the old name to make\n# this option work for either version of systemd.\nStartLimitInterval=60s\n\n# Having non-zero Limit*s causes performance problems due to accounting overhead\n# in the kernel. We recommend using cgroups to do container-local accounting.\nLimitNOFILE=infinity\nLimitNPROC=infinity\nLimitCORE=infinity\n\n# Comment TasksMax if your systemd version does not support it.\n# Only systemd 226 and above support this option.\nTasksMax=infinity\n\n# set delegate yes so that systemd does not reset the cgroups of docker containers\nDelegate=yes\n\n# kill only the docker process, not all processes in the cgroup\nKillMode=process\nOOMScoreAdjust=-500\n\n[Install]\nWantedBy=multi-user.target

测试是否成功

运行以下命令

sudo systemctl restart docker && sudo systemctl status docker

可以看到成功启动了。

4、加入开机启动项

执行命令

systemctl enable docker.service

设置为开机启动。完成部署

总结

由于docker和linxu内核的兼容性问题,不是最新的docker就能运行,所以在适配docker版本时,尽量不用最新的。或者有可能升级一下系统内核(估计够呛~)

其他相关推荐

阅读更多网络存储精彩内容,可前往什么值得买查看

","gnid":"9e4a01ce8cdae3e3a","img_data":[{"flag":2,"img":[{"desc":"","height":"238","title":"","url":"https://p0.ssl.img.360kuai.com/t01bb4ba0be131a4063.jpg","width":"1080"},{"desc":"","height":"581","title":"","url":"https://p0.ssl.img.360kuai.com/t01e9165ecc75488e07.jpg","width":"1080"},{"desc":"","height":"654","title":"","url":"https://p0.ssl.img.360kuai.com/t013aa0fae936bcdd7e.jpg","width":"907"},{"desc":"","height":434,"title":"","url":"https://p0.ssl.img.360kuai.com/t0145b8a8138a03207d.jpg","width":1080},{"desc":"","height":"316","title":"","url":"https://p0.ssl.img.360kuai.com/t01207a63909f47fc79.jpg","width":"1080"},{"desc":"","height":"124","title":"","url":"https://p0.ssl.img.360kuai.com/t0142722ba88f8b6e6e.jpg","width":"1080"},{"desc":"","height":"186","title":"","url":"https://p0.ssl.img.360kuai.com/t012839ecaad9260359.jpg","width":"1080"},{"desc":"","height":"99","title":"","url":"https://p0.ssl.img.360kuai.com/t012fbd44f0106a4e12.jpg","width":"1080"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0114ca3af0fcd25ff2.jpg","width":"1080"}]}],"original":0,"pat":"art_src_1,fts0,sts0","powerby":"pika","pub_time":1703238786000,"pure":"","rawurl":"http://zm.news.so.com/a6a696f691187a4d10ddb005dd0b1398","redirect":0,"rptid":"e7c772c90591f880","rss_ext":[],"s":"t","src":"什么值得买","tag":[],"title":"IT入门必备 篇三十一:从零开始,搭建边缘计算服务并配置 Docker:只需三步(ARM平台)

鲍扶向1068进入android system recovery该怎么办 -
韶莉鲁13690987299 ______ Use Touch to highlight and \'OK\'to Select:使用触摸高亮,并触摸ok确定;现在新的2.2要同时按住音量上下键才进入Recovery菜单.出现四个可选项,可以用音量上下键选择你要干什么,2.1系统点左下角的OK确认!新版的版的2.2是点开机键确认!所以2.1系统现在新版的2.2Recovery操作方法最大的不同是一个靠触摸,一个靠实体按键!reboot system now重启系统apply sdcard:update.zip应用SD卡升级wipe data/factory reset恢复出场设置(清空data分区)wipe cache partition清空cache分区

鲍扶向1068手机屏幕上出现System Error -
韶莉鲁13690987299 ______ 你好,出现这种情况可能是系统故障造成的,可以在关机状态下按住电源键+音量上键进入recovery模式,选择wipe date/factory reset清除数据并恢复出厂设置,和wipe cache partition清除缓存数据,都点击了确定之后,再选择reboot system now重启系统,如果没有解决的话,可以联系售后检修.

鲍扶向1068出现android system recovery应该点哪个 -
韶莉鲁13690987299 ______ 主界面 reboot system now:重启手机(刷机完毕选择此项就能重新启动系统) apply SDcard:update.zip:安装存储卡中的update.zip升级包(你可以把刷机包命名为update.zip然后用这个选项直接升级) wipe data/factory reset:清除用户数据并...

鲍扶向1068vivox1手机进入systemrecovery模式怎么办 -
韶莉鲁13690987299 ______ 您好! 您可以同时按住“手机音量+键"和"开机键"(也称电源键)5秒钟,手机出现vivo手机Logo后,放开按键,进入Recovery模式,先选择 wipe data/factoryreset 清除所有数据/恢复出厂之后选择YES哦,等界面跳转之后,再选择reboot system now 重启手机.如果有任何问题可以随时来咨询我们的.非常感谢您对我们vivo的支持,祝您生活愉快!

鲍扶向1068按下system recovery还要做什么 -
韶莉鲁13690987299 ______ Recovery模式怎么进入 每部Android设备进入Recovery模式的方法不同.以Milestone为例:若bootloader为90.78,按住键盘的“X”键,再按电源键开机,看到moto的经典logo即可放开此2键.等待出现一个三角形图标,然后按住音量向上键+轻...

鲍扶向1068联想小新重置不了电脑系统(联想小新重置不了电脑系统怎么办)
韶莉鲁13690987299 ______ 1. 联想小新重置不了电脑系统怎么办还原方法:1、用卡针按压电脑右边的恢复小孔.2、使用“PgUp" 和 "PgDn”键选择 "System Recovery" , 并用回车键确定....

鲍扶向1068“系统开始归零”怎么翻译成英语? -
韶莉鲁13690987299 ______ 系统开始归零:The systembegan toreturn to zero,请采纳

鲍扶向1068无线路由器如何按reset -
韶莉鲁13690987299 ______ 有小按钮的,有小圆洞的,还有没有的.没有的直接拔电源重启,其他的就按下去就行.

鲍扶向1068手机上显示system error怎么办 -
韶莉鲁13690987299 ______ 我的也出现了同样的情况,手机出现System Error Error Code:F01A01E01,挡住其他东西,触屏用不了,这是由于卸载了系统自带的卓易市场引起的,后来通过数据线连接电脑,用360手机助手重新安装卓易市场,重启手机后解决.PS:我是先将手机用USB线连到电脑上,再重启手机,然后启动电脑上的360手机助手,之后就可以通过电脑上360手机助手往手机里装卓易市场了

鲍扶向1068(JAVA)建立一个m行n列的矩阵,找出其中最小值的元素所有的行和列,输出其值和所在行所在列! -
韶莉鲁13690987299 ______ 现在假设你有个M行N列已初始化的而为数组array[m][n].我帮你写找出最小值和位置的算法.int x = 0,y = 0,reset = array[0][0];for(int i=0;iarray[i][j]){ reset = array[i][j]; x = i; y = j } }}System.out.println("最小值是:"+reset);System.out.println("最小值位置在第"+x+"行,第"+y+"列");

(编辑:自媒体)
关于我们 | 客户服务 | 服务条款 | 联系我们 | 免责声明 | 网站地图 @ 白云都 2024