检查Debian发行版版本:
cat /etc/os-release
更新(建议使用VPN):
sudo apt update
sudo apt upgrade
//移除潜在的老版本Docker
sudo apt-get remove docker docker-engine docker.io containerd runc
//安装需要的包
sudo apt-get install ca-certificates curl gnupg lsb-release
//添加Docker官方的GPG密钥(需关闭V2Ray,否则SSL报错)
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
//添加稳定版仓库
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
//安装Docker(需关闭V2Ray,否则SSL报错)
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
//检查是否安装成功
docker -v
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
启动MiniKube(需拉取镜像,建议使用VPN):
minikube start
//可能报错未添加Docker组,则需要添加用户组:
sudo usermod -aG docker $USER && newgrp docker