环境:4B 4G版
角色:root
1、更新系统
apt-get update
2、更新软件包传输方式
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
lsb-release \
software-properties-common
3、添加docker GPG 密钥源
国内:
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian/gpg | sudo apt-key add -