#!/bin/sh
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl gnupg2 lsb-release software-properties-common
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian/gpg | sudo apt-key add -
echo "deb [arch=armhf] https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian $(lsb_release -cs) stable" |sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install -y docker-ce
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh --mirror Aliyun
sudo systemctl enable docker
sudo systemctl start docker
# sudo groupadd docker
sudo usermod -aG docker $USER
echo "没有报错情况下退出终端重新登录即可完成"
Last modification:October 24th, 2019 at 03:43 pm
如果觉得我的文章对你有用,请随意赞赏