Docker - 无法找到软件包docker-engine

时间:2022-01-06 23:40:43

I am trying to install docker in Ubuntu 16.04. I am following this link for docker installation. I am ending up with Unable to locate package docker-engine

我想在Ubuntu 16.04中安装docker。我正在关注docker安装的链接。我最终无法找到包docker-engine

My current kernal version - 4.4.0-38-generic Ubuntu version - 16.04

我目前的核心版本 - 4.4.0-38-通用Ubuntu版本 - 16.04

2 个解决方案

#1


21  

The docker package already inside Ubuntu is called docker.io [1] so just do

已经在Ubuntu中的docker包称为docker.io [1],所以就这样做

sudo apt-get install docker.io

But if you follow that link you gave and do steps 7, 8, 9 then your installation will know about the package at the docker repo and also find docker-engine.

但是,如果你按照你给出的链接并执行步骤7,8,9那么你的安装将知道docker repo上的软件包并找到docker-engine。

Your call. I run the Ubuntu version (currently 0.11.2 on Ubuntu 16.04) on some machines, and the one from Docker on others (as I was curious about some 0.12 features). Both will work just fine.

你的来电。我在某些机器上运行Ubuntu版本(目前在Ubuntu 16.04上为0.11.2),在其他机器上运行Docker中的那个(因为我对0.12的一些功能感到好奇)。两者都可以正常工作。

[1] As docker is used for a desktop launcher application 'docking' icons.

[1]由于docker用于桌面启动器应用程序“对接”图标。

#2


1  

The main solution which solved most of the issues in docker is installing 64-bit version of ubuntu. I was running with 32-bit(i686). Hope it helps ! !

解决了docker中大部分问题的主要解决方案是安装64位版本的ubuntu。我用32位(i686)运行。希望能帮助到你 ! !

#1


21  

The docker package already inside Ubuntu is called docker.io [1] so just do

已经在Ubuntu中的docker包称为docker.io [1],所以就这样做

sudo apt-get install docker.io

But if you follow that link you gave and do steps 7, 8, 9 then your installation will know about the package at the docker repo and also find docker-engine.

但是,如果你按照你给出的链接并执行步骤7,8,9那么你的安装将知道docker repo上的软件包并找到docker-engine。

Your call. I run the Ubuntu version (currently 0.11.2 on Ubuntu 16.04) on some machines, and the one from Docker on others (as I was curious about some 0.12 features). Both will work just fine.

你的来电。我在某些机器上运行Ubuntu版本(目前在Ubuntu 16.04上为0.11.2),在其他机器上运行Docker中的那个(因为我对0.12的一些功能感到好奇)。两者都可以正常工作。

[1] As docker is used for a desktop launcher application 'docking' icons.

[1]由于docker用于桌面启动器应用程序“对接”图标。

#2


1  

The main solution which solved most of the issues in docker is installing 64-bit version of ubuntu. I was running with 32-bit(i686). Hope it helps ! !

解决了docker中大部分问题的主要解决方案是安装64位版本的ubuntu。我用32位(i686)运行。希望能帮助到你 ! !