Third, the Raspberry Pi 4 raspberrypi buster use Qinghua source installation docker

As already basic installation, this installation docker:

1, the replacement of the software source :

Use docker official source installation download is too slow, here we use domestic sources:

sudo nano /etc/apt/sources.list

Replace with:

#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

Update resp.list:

sudo nano /etc/apt/sources.list.d/raspi.list

Replace with:

#deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/ buster main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb http://archive.respberrypi.org/debian/ buster main ui
#deb-src http://archive.raspberrypi.org/debian/ buster main ui
deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

Upon completion of the update:

sudo apt-get update

Source software updated.

Start the installation docker, install the necessary components related to:

sudo apt-get install \apt-transport-https \ca-certificates \curl \gnupg2 \software-properties-common

Join the warehouse keys:

curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo apt-key add -

Creating docker.list, note the version here, I am using buster, the other version can be replaced.

echo "deb [arch=armhf] https://download.docker.com/linux/raspbian buster stable" | \sudo tee /etc/apt/sources.list.d/docker.list

After completing the installation start:

sudo apt-get install docker-ce

Wait can be completed. It should be noted that when creating docker.list file, note its own version, not life and death before I installed, but later found not find docker in this version, in fact, because right configuration.

Published 22 original articles · won praise 1 · views 6911

Guess you like

Origin blog.csdn.net/soulman1234/article/details/100941352