Docker 知识库
1. Docker
1.1 安装Docker-Engine
1.先查看Ubuntu内核版本 Docker要求Linux的内核版本必须 >= 3.10 如果不满足可能需要升级内核
$ uname -r [unmae -a]
> 4.4.0-45-generic [Linux tang 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux]
2.更新apt源
$ sudo apt-get update
$ sudo apt-get install apt-transport-https ca-certificates
3.添加docker官方apt源的公钥 有可能会添加不成功多尝试几次就好
$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
4.查看自己的系统版本和官方提供的仓库地址进行匹配
$ cat /etc/issue
> Ubuntu 16.04.1 LTS \n \l
$ sudo lsb_release -a
> No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
以下是官方给出的不同系统版本对应的仓库地址
Ubuntu version | Repository |
---|---|
Precise 12.04 (LTS) | deb https://apt.dockerproject.org/repo ubuntu-precise main |
Trusty 14.04 (LTS) | deb https://apt.dockerprojec |