New Out of Box Software (NOOBS)是树莓派官方发布的工具,是一种新颖的设置程序,很方便的让第一接触Linux和树莓派的玩家能更轻松的运行上树莓派。可以抛开各种复杂的网络和镜像安装软件,甚至可以抛开电脑就能让你安装上你想要的系统。

如果您的系统为NOOBS V2.x.x的版本,请参照Docker官网进行安装

https://docs.docker.com/install/linux/docker-ce/debian/

如果您不幸和我一样的安装了NOOBS V3.x.x的版本,在安装docker的时候有了如下的报错(目前Docker-CE并不支持树莓派buster系统 2019-7-17)

Unable to install package aufs-dkms

apt install aufs-dkms

Setting up aufs-dkms (4.19+20190211-1) ...
Removing old aufs-4.19+20190211 DKMS files...

------------------------------
Deleting module version: 4.19+20190211
completely from the DKMS tree.
------------------------------
Done.
Loading new aufs-4.19+20190211 DKMS files...
It is likely that 4.19.50+ belongs to a chroot's host
Building for 4.19.50+, 4.19.50-v7+ and 4.19.50-v7l+
Building initial module for 4.19.50+
Error! Bad return status for module build on kernel: 4.19.50+ (armv6l)
Consult /var/lib/dkms/aufs/4.19+20190211/build/make.log for more information.

可以尝试一下如下命令安装 ( https://github.com/raspberrypi/linux/issues/3021 )

$ sudo apt-get update
$ apt-get install apt-transport-https ca-certificates software-properties-common
$ curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
$ echo "deb https://download.docker.com/linux/raspbian/ stretch stable" > 
$ /etc/apt/sources.list.d/docker.list
$ apt install --no-install-recommends docker-ce
$ systemctl enable docker.service
$ systemctl start docker.service

gayhub至今还在激烈讨论 https://github.com/docker/for-linux/issues/709 有兴趣可以follow一下

发表评论