X Lab

Any sufficiently advanced technology is indistinguishable from magic.

AeroX's avatar AeroX

Raspberry Pi OS 安装docker

安装Raspberry Pi OS

下载镜像和安装工具

配置WiFi

在SD卡的/boot/下新建 wpa_supplicant.conf

1
2
3
4
5
6
7
8
9
10
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="WiFi-A"
psk="12345678"
key_mgmt=WPA-PSK
priority=1
}

再在/boot/下新建ssh文件,开启ssh

默认用户名pi 密码raspberry

换源

清华源

安装VNC

install tightvncserver

安装docker

1
2
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh --mirror Aliyun

启动docker

1
2
sudo systemctl enable docker
sudo systemctl start docker

Docker换源

/etc/docker/daemon.json

1
2
3
4
5
6
{
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com"
]
}

重启服务

1
2
sudo systemctl daemon-reload
sudo systemctl restart docker