国外:
curl -fsSL https://get.docker.com | bash
国内:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
$ sudo apt-get remove docker docker-engine docker.io containerd runc
使用apt-get安装
sudo apt-get install docker-ce -y
https://www.leftso.com/article/924.html