无法在Debian Jessie上安装Docker

前端之家收集整理的这篇文章主要介绍了无法在Debian Jessie上安装Docker前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

尽管尝试了使用新的apt repo描述here的官方安装机制,以及curl -fsSL https://get.docker.com/ | sh route,我仍然得到E:当我尝试apt-get install docker-engine时,无法从APT找到包docker-engine.

我的版本是:

$uname -a
Linux blah 4.5.5-x86_64-linode69 #3 SMP Fri May 20 15:25:13 EDT 2016 x86_64 GNU/Linux


$lsb_release -c
Codename:       jessie

$cat /etc/debian_version
8.5

$cat /etc/apt/sources.list
deb http://ftp.uk.debian.org/debian/ stable main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ stable main
deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main
deb http://http.debian.net/debian wheezy-backports main

我的/etc/apt/sources.list.d中唯一的文件是docker.list,其中包含:

deb https://apt.dockerproject.org/repo debian-jessie main

apt-cache策略docker-engine也找不到它:

apt-cache policy docker-engine
N: Unable to locate package docker-engine

我怎么解决这个问题?

最佳答案
编辑您的sources.list并更改以下行:

deb http://http.debian.net/debian wheezy-backports main

deb http://ftp.debian.org/debian jessie-backports main

更新并安装docker

apt-get update
apt-get install docker.io

编辑

要安装特定版本的docker-engine,请从here下载.deb软件包,例如,最新的软件包是docker-engine_1.9.1-0~jessie_amd64.deb:

wget https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_1.9.1-0~jessie_amd64.deb
sudo apt-get update
dpkg -i docker-engine_1.9.1-0~jessie_amd64.deb

也许你会得到一个错误,修复它运行:

apt-get -f install
dpkg -i docker-engine_1.9.1-0~jessie_amd64.deb

猜你在找的Docker相关文章