安装docker,很快很方便。最初安装ubuntu里的方法去搞,发现不行。没有安装成功,
sudo apt-get update
sudo apt-get install docker-ce
sudo apt-get install docker-engine
lsb_release -cs # 查询版本号 debian分支
deb [arch=amd64] http://mirrors.ustc.edu.cn/docker-ce/linux/debian stretch stable
sudo apt-get remove docker docker-engine docker.io
使用了
#!/bin/bash
cat >/etc/apt/sources.list <<EOF
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-