Ubuntu 14.04安裝Docker

來源:互聯網
上載者:User

Ubuntu 14.04安裝Docker

Docker利用Linux容器(LXC)虛擬化技術提供一份部署環境。Docker目的是建立可移植,可分發給任何的Docker環境中運行。Docker由於是OpenVZ的作品,對核心有一些要求,不要在14.04版本的Ubuntu倉庫中已經可以尋找到。

安裝Docker使用apt-get命令:

$ apt-get install docker.io

啟動服務和守護進程

$ service docker.io status

$ service docker.io start

建立軟串連

ln -sf /usr/bin/docker.io /usr/local/bin/docker

如沒有提示錯誤則說明你已經在Ubuntu14.04上面快速安裝Docker成功了。

------------------------另一篇------------------------

Ubuntu Trusty comes with a 3.13.0 Linux kernel, and a docker.io package which installs Docker 0.9.1 and all its prerequisites from Ubuntu's repository.Note: Ubuntu (and Debian) contain a much older KDE3/GNOME2 package called docker, so the package and the executable are called docker.io.

$ sudo apt-get update
$ sudo apt-get install docker.io
$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
$ sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io

如果使用作業系統內建包安裝docker  ,使用上面的辦法,安裝的版本是0.9.1 (不建議,因為1.0 生產版本已經發布,下面介紹安裝方法)

f you'd like to try the latest version of Docker:

First, check that your APT system can deal with https URLs: the file /usr/lib/apt/methods/httpsshould exist. If it doesn't, you need to install the package apt-transport-https.

如果要安裝最新的docker版本,那麼需要安裝https支援

apt-get install apt-transport-https
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main\

> /etc/apt/sources.list.d/docker.list"

$ sudo apt-get update

$ sudo apt-get install lxc-docker

這樣就安裝完畢了。

ubuntu12.04安裝docker

如果是更低版本的ubuntu

$ sudo apt-get update

$ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring

# reboot

$ sudo reboot

然後重複上面的步驟即可

CentOS 6/7系列安裝Docker

Docker的搭建Gitlab CI 全過程詳解

Docker安裝應用(CentOS 6.5_x64)

Docker 和一個正常的虛擬機器有何區別?

在 Docker 中使用 MySQL

Docker 將改變所有事情

Docker安裝應用(CentOS 6.5_x64)

Docker 的詳細介紹:請點這裡
Docker 的:請點這裡

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.