apt-get
apt-cache madison docker-ce
docker-ce | 18.06.1~ce~3-0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 18.06.0~ce~3-0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 18.03.1~ce-0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial/stable amd64 Packages
...
docker-ce | 17.03.3~ce-0~ubuntu-xenial | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial/stable amd64 Packages
apt-get install docker-ce=18.03.1~ce-0~ubuntu
yum
yum list nginx --showduplicates | sort -r
* updates: mirrors.aliyun.com
nginx.x86_64 1:1.8.1-1.el7.ngx nginx
nginx.x86_64 1:1.8.0-1.el7.ngx nginx
nginx.x86_64 1:1.14.1-1.el7_4.ngx nginx
nginx.x86_64 1:1.14.0-1.el7_4.ngx nginx
yum install nginx-1.14.1