1.下载deb文件
阿里url:https://mirrors.aliyun.com/docker-ce/linux/ubuntu/dists/bionic/pool/stable/arm64/
在ubuntu系统中执行以下命令(分别下载三个文件,未指定下载地址默认下载到当前文件夹)
sudo curl -O https://mirrors.aliyun.com/docker-ce/linux/ubuntu/dists/bionic/pool/stable/arm64/containerd.io\_1.2.6-3\_arm64.deb
sudo curl -O https://mirrors.aliyun.com/docker-ce/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce-cli\_19.03.9~3-0~ubuntu-bionic\_arm64.deb
sudo curl -O https://mirrors.aliyun.com/docker-ce/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce\_19.03.9~3-0~ubuntu-bionic\_arm64.deb
2.安装上面下载的文件(分别执行以下命令)
sudo dpkg -i containerd.io\_1.2.6-3\_arm64.deb
sudo dpkg -i docker-ce-cli\_19.03.9~3-0~ubuntu-bionic\_arm64.deb
sudo dpkg -i docker-ce\_19.03.9~3-0~ubuntu-bionic\_arm64.deb
3.启动docker服务
sudo service docker start
如果执行以上命令出错
执行以下命令:
sudo systemctl unmask docker.service
sudo systemctl unmask docker.socket
再次执行启动docker服务命令 sudo service docker start
4.执行命令 docker run hellow-world
如下图,安装成功