删除旧版本的docker。
# apt-get remove docker docker-engine docker.io containerd runc
将arm64设置为Docker官方仓库。
# apt-get update
# apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
OK
# add-apt-repository \
"deb [arch=arm64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
安装Docker
# apt-get update
# apt-get install docker-ce docker-ce-cli containerd.io
docker-compose 安装
# apt-get install python-setuptools python-pip
# pip install docker-compose
# pip uninstall backports.ssl-match-hostname
# apt-get install python-backports.ssl-match-hostname
vi /etc/sysctl.conf
net.ipv4.ip_forward=1