版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chent86/article/details/82631584
添加源
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache madison docker-ce 查看合适的版本,选择一个安装
如:sudo apt-get -y install docker-ce=17.06.0~ce-0~ubuntu --allow-unauthenticated