Docker 支持以下的 Ubuntu 版本
這個(gè)頁面可以指導(dǎo)你安裝 Docker 包管理器,并了解其中的安裝機(jī)制。通過下邊的安裝方式可以確保你獲取的是最新版本的 Docker。如果你想要使用 'Ubuntu包管理器' 安裝,你可以查閱你的 Ubuntu 文檔。
Docker 需要在64位版本的Ubuntu上安裝。此外,你還需要保證你的 Ubuntu 內(nèi)核的最小版本不低于 3.10,其中3.10 小版本和更新維護(hù)版也是可以使用的。
在低于3.10版本的內(nèi)核上運(yùn)行 Docker 會丟失一部分功能。在這些舊的版本上運(yùn)行 Docker 會出現(xiàn)一些BUG,這些BUG在一定的條件里會導(dǎo)致數(shù)據(jù)的丟失,或者報(bào)一些嚴(yán)重的錯(cuò)誤。
打開控制臺使用 uname -r命令來查看你當(dāng)前的內(nèi)核版本。
$ uname -r
3.11.0-15-generic
Docker 要求 Ubuntu 系統(tǒng)的內(nèi)核版本高于 3.10 ,查看本頁面的前提條件來驗(yàn)證你的Ubuntu版本是否支持 Docker 。
這個(gè)版本不需要考慮前提條件
對于Ubuntu Precise版本, 安裝Docker需要內(nèi)核在3.13及以上版本。如果你的內(nèi)核版本低于3.13你需要升級你的內(nèi)核。 通過下邊的表,請查閱下邊的表來確認(rèn)你的環(huán)境需要哪些包。
| linux-image-generic-lts-trusty | Generic Linux kernel image. This kernel has AUFS built in. This is required to run Docker. |
| linux-headers-generic-lts-trusty | Allows packages such as ZFS and VirtualBox guest additions which depend on them. If you didn't install the headers for your existing kernel, then you can skip these headers for the"trusty" kernel. If you're unsure, you should include this package for safety. |
| xserver-xorg-lts-trusty | Optional in non-graphical environments without Unity/Xorg.
Required when running Docker on machine with a graphical environment.
To learn more about the reasons for these packages, read the installation instructions for backported kernels, specifically the LTS Enablement Stack — refer to note 5 under each version. |
| libgl1-mesa-glx-lts-trusty |