Pi 4 B 官方系统只支持32位系统,gpio 库函数wiringPi 库也只支持32位,为了操作gpio和运行64位的edgex foundry,所以系统不能安装截图上树莓官方的32系统,且gpio库采用bcm2835
2.
官方指定了支持树莓派的ubuntu 系统 可以安装:
2.1
本计划安装ubuntu mate最新版本的20.04,发现https://download.docker.com/linux/ubuntu/dists/下没有对应的版本,此处版本是按照名字来对应的:https://blog.csdn.net/songfulu/article/details/85310273
,所以采用Bionic Beaver对应的64 位 ubuntu 18.04 服务器版的:
3.安装Docker Engine,本文参考官网快速安装:https://docs.docker.com/engine/install/ubuntu/
3.1.说明:最终结果是需要安装以下3个包,可以从库里安装,也可以从官网https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/
下载到本地后执行:dkpg -i xxxx.deb
containerd.io_1.2.10-3_arm64.deb
docker-ce-cli_19.03.33-0ubuntu-disco_arm64.deb
docker-ce_19.03.33-0ubuntu-disco_arm64.deb
3.2 以下步骤来自官网:
3.3.卸载旧版本
sudo apt-get remove docker docker-engine docker.io containerd runc
3.4使用存储库安装
更新apt软件包索引并安装软件包以允许apt通过HTTPS使用存储库:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
3.5添加Docker的官方GPG**:
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
3.6使用以下命令来设置稳定的存储库。要添加 夜间或测试存储库,请在以下命令中的单词后面添加nightly或test(或两者)stable:
sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu (lsb_release -cs) stable有空格,否则 下面 sudo apt-get update 时候提示失败,失败时可以看到/etc/apt/source.list文件最下方指定的docker 路径应为stable 无空格导致的。
3.7开始安装DOCKER引擎
3.7.1更新apt程序包索引,并安装最新版本的Docker Engine和容器,或转到下一步以安装特定版本
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
此时能看到开始下载库文件
3.8 下载安装结束后,执行sudo docker run hello-world,提示下载hello-world的库并运行库: