1.sudo apt-get remove docker docker-engine docker.io containerd runc
首先移除已经装好的Docker
2.sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
3.sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg