简体   繁体   English

无法从Ubuntu Bionic 18.04服务器安装Docker版本17.03.2?

[英]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.

相关问题 如何在Ubuntu 18.04 Bionic上安装docker-compose - How to install docker-compose on ubuntu 18.04 Bionic 如何在ubuntu 18.04仿生上安装加密技术? - How to install cryptography on ubuntu 18.04 bionic? 尝试在 Linux Ubuntu 18.04 Bionic 上安装 Docker CE 时显示错误? - Error showing while trying to install Docker CE on Linux Ubuntu 18.04 Bionic? 无法从 ubuntu 18.04 docker 映像中的源安装 ruby - Unable to install ruby from source in ubuntu 18.04 docker image 无法在 Ubuntu 18.04 上安装 Docker? - Can't install Docker on Ubuntu 18.04? Docker 不会安装在 Ubuntu 18.04 上 - Docker won't install on Ubuntu 18.04 在 Ubuntu 仿生容器中运行 Docker - Running Docker in Ubuntu Bionic Container ZC5FD214CD0D2B3B4272E73B022BA5C2Z Z3D945423F8E9496C429A5B4604F4F4604FZ 18.04无法安装MSODBCSQL17778840100C97840C978840C97840C97840C978840C9840C9840C9840C9840C9840C9829840C982729840C9840C9827840C98272988C9292138C9788C9292332330C977840C330C978C923B301333B - Docker Ubuntu 18.04 unable to install msodbcsql17 SQL Server ODBC Driver 17 apt-get 错误:找不到 'docker-ce' 的版本 '5:19.03.4~3-0~ubuntu-bionic' - apt-get error: Version '5:19.03.4~3-0~ubuntu-bionic' for 'docker-ce' was not found WSL:无法在 WSL 2、Ubuntu 18.04 上安装 docker - WSL: Can't install docker on WSL 2, Ubuntu 18.04
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM