内容参考:https://blog.csdn.net/qiangrenpu8881/article/details/104863690
1.准备Ubuntu
系统:Ubuntu 20.04.2 ARM64
2.更新apt
sudo apt-get update
3.安装基本软件
sudo apt-get install curl wget apt-transport-https ca-certificates software-properties-common
4.添加docker密钥
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
对比:
sudo apt-key fingerprint 0EBFCD88
5.添加源
sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
其中**$(lsb_release -cs)** 为系统函数,可自动获取当前ubuntu版本,arm64对应的是cpu版本。
6.更新apt,安装docker
sudo apt-get update
sudo apt-get install docker-ce
查看docker状态:
systemctl status docker