树莓派4B安装ubuntu后安装docker

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

如果执行以上命令出错树莓派4B安装ubuntu后安装docker

执行以下命令:

sudo systemctl unmask docker.service

sudo systemctl unmask docker.socket

再次执行启动docker服务命令 sudo service docker start

4.执行命令 docker run hellow-world 如下图,安装成功
树莓派4B安装ubuntu后安装docker

上一篇:华为鲲鹏服务器arm64安装docker


下一篇:第7部分- Linux ARM汇编 X86和ARM64部分汇编差异