1.
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
2.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
3.
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
4.
sudo apt-get update
5.
apt-cache madison docker-ce
6.安装指定版本docker
apt-get install docker-ce=18.06.1~ce~3-0~ubuntu