Install Docker on Ubuntu 14.04

Source: Internet
Author: User

Install Docker on Ubuntu 14.04

Docker uses Linux container (LXC) virtualization technology to provide a deployment environment. The purpose of Docker is to create a port and send it to any Docker environment for running. Because Docker is a work of OpenVZ, it has some requirements on the kernel and cannot be found in the Ubuntu repository of version 14.04.

Install Docker using the apt-get command:

$ Apt-get install docker. io

Start the service and daemon

$ Service docker. io status

$ Service docker. io start

Create a soft connection

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

If no error is displayed, you have installed Docker on Ubuntu14.04.

------------------------ Another article ------------------------

Ubuntu Trusty comes with a 3.20.linux kernel, and a docker. io package which instils 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'/etc/bash_completion.d/docker. io

If you use the OS package to install docker, use the above method. The installed version is 0.9.1 (not recommended because the 1.0 production version has been released. The following describes the installation method)

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/httpsshocould exist. if it doesn' t, you need to install the package apt-transport-https.

To install the latest docker version, you must install https support.

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

The installation is complete.

Ubuntu12.04 install docker

For ubuntu earlier versions

$ Sudo apt-get update

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

# Reboot

$ Sudo reboot

Repeat the preceding steps.

Install Docker in CentOS 6/7 Series

Detailed explanation of the entire process of building Gitlab CI for Docker

Docker installation application (CentOS 6.5_x64)

What is the difference between Docker and a normal Virtual Machine?

Use MySQL in Docker

Docker will change everything

Docker installation application (CentOS 6.5_x64)

Docker details: click here
Docker: click here

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.