[英]Cannot install docker version 17.03.2 from Ubuntu Bionic 18.04 server?
Current version I have is 18.06.0-ce. 我拥有的当前版本是18.06.0-ce。
I followed the instructions at the docker documentation to install a specific version. 我按照Docker文档中的说明安装了特定版本。
This command is supposed to list all the versions available. 该命令应该列出所有可用的版本。
apt-cache madison docker-ce
But it only displays the 18.~ versions. 但是它仅显示18.〜版本。
docker-ce | 18.06.0~ce~3-0~ubuntu | https://download.docker.com/linux/ubuntu bionic/edge amd64 Packages
docker-ce | 18.06.0~ce~3-0~ubuntu | https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages
docker-ce | 18.05.0~ce~3-0~ubuntu | https://download.docker.com/linux/ubuntu bionic/edge amd64 Packages
docker-ce | 18.03.1~ce~3-0~ubuntu | https://download.docker.com/linux/ubuntu bionic/edge amd64 Packages
docker-ce | 18.03.1~ce~3-0~ubuntu | https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages
So unable to do this. 因此无法做到这一点。
sudo apt-get install docker-ce=<VERSION>
How do I install the version I need. 如何安装所需的版本。
The reason I want this specific version is because Rancher docs state they are the only compatible versions. 我想要这个特定版本的原因是因为Rancher文档指出它们是唯一兼容的版本。
Below are the contained copied from official docker guide. 以下是从官方docker指南复制而来的内容。 Please read the Note: and try to find the repository that you want to use.
请阅读“注意:”并尝试找到要使用的存储库。 Below repository is pointing to the latest version.
下面的存储库指向最新版本。
Use the following command to set up the stable repository. 使用以下命令来设置稳定的存储库。
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Note: Starting with Docker 17.06, stable releases are also pushed to the edge and test repositories. 注意:从Docker 17.06开始,稳定的版本也被推送到边缘并测试存储库。
$ sudo snap install docker
这给出了docker 17.06.02-ce,这是我为Ubuntu 18.04找到的最旧的版本
You can download docker by following command. 您可以通过以下命令下载docker。 I have tested on Ubuntu 16.04.
我已经在Ubuntu 16.04上进行了测试。
sudo apt-get install docker-ce=17.03.2~ce-0~ubuntu-xenial
As the docker documents 作为码头工人文件
If your cannot use Docker's repository to install Docker CE, you can download the .deb file for your release and install it manually.
如果无法使用Docker的存储库安装Docker CE,则可以下载发布的.deb文件并手动安装。 You need to download a new file each time you want to upgrade Docker CE.
每次要升级Docker CE时,都需要下载一个新文件。
Your can use the scripts blew. 您可以使用脚本自爆。
# docker-ce depends on libltdl7 (>= 2.4.6)
wget http://archive.ubuntu.com/ubuntu/pool/main/libt/libtool/libltdl7_2.4.6-6_amd64.deb
sudo dpkg -i libltdl7_2.4.6-6_amd64.deb
wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_17.03.2~ce-0~ubuntu-xenial_amd64.deb
sudo dpkg -i docker-ce_17.03.2~ce-0~ubuntu-xenial_amd64.deb
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.