Installing Docker in Ubuntu trusty 14.04 (LTS) (64-bit)

Source: Internet
Author: User
Tags docker run

Ubuntu Trusty brings in 3.13.0 Linux kernel, which requires the preparation of certain conditions for all Ubuntu libraries, the Docker installation package is called Docker.io. (Note: Ubuntu (and Debian) contains some older kde3/gnome2 installation packages called Docker, so the Docker installation package here is called Docker.io. )

Installation:
Install the installation package under Ubuntu (may not be up-to-date)

$ 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
$ source/etc/bash_completion.d/docker.io
If you want to try the latest version of Docker

First of all, you have to check the APT system can be HTTPS parsing, URLs: File/usr/lib/apt/methods/https should already exist, if not, you need to install the package apt-transport-https!

[-e/usr/lib/apt/methods/https] | | {apt-get update apt-get install Apt-transport-https}
After that, add the Docker repository key to the local keychain

$ sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9
Add Docker repositories to the software source, upgrade the software source, install the Lxc-docker package!

$ sudo sh-c "Echo Deb Https://get.docker.com/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install Lxc-docker
Note: There is a simple script that can be used for this process

$ Curl-ssl https://get.docker.com/ubuntu/| sudo sh
Verify that all the work is done as expected

$ sudo docker run-i-T Ubuntu/bin/bash
OK, finished!

Installing Docker in Ubuntu trusty 14.04 (LTS) (64-bit)

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.