debian安装docker

1.查看Linux系统信息

 nuame -a

2.查看Linux 系统发行版的名称

lsb_release -cs

3.进入到下载包页面 https://download.docker.com/linux/

wget https://download.docker.com/linux/debian/dists/jessie/pool/stable/amd64/docker-ce_18.06.3~ce~3-0~debian_amd64.deb 

dpkg -i docker-ce_18.06.3~ce~3-0~debian_amd64.deb 
apt-get -f install


4.添加阿里加速

mkdir -p /etc/dockersudo 

tee /etc/docker/daemon.json <<-'EOF'
{  "registry-mirrors": ["https://3nlwq51l.mirror.aliyuncs.com"]} 
EOF

systemctl daemon-reload
systemctl restart docker

你可能感兴趣的:(debian安装docker)