Ubuntu 16.04 LTS Installation Docker

Source: Internet
Author: User

I. Prerequisites for installing Docker

1. Computers running 64-bit CPU architectures (currently only x86_64 and AMD64), please note that Docker does not currently support 32-bit CPUs.
2. Run Linux 3.8 or later kernel. Some older versions of 2.6.x or later kernels can also run Docker, but the results can vary greatly. Also, if you need help with the old kernel, it is often recommended that you upgrade to a later version of the kernel.
3, the kernel must support a suitable storage driver (storage driver), for example:
Device MANAGE;AUFS;VFS;BTRFS;ZFS
The default storage driver is typically device mapper or AUFS

4. The kernel must support and enable the Cgroup and namespace (namespace) functions.

Install the linux-iamge-extra-* kernel package. This package allows you to use the AUFS storage driver.

~$ sudo apt-get install linux-image-extra-$ (uname-r) linux-image-extra-virtual

Check the Ubuntu kernel version

~$ uname-a

Check Device Mapper

~$ ls-l/sys/class/misc/device-mapper

Second, install Docker add Docker's apt warehouse
~$ sudo sh-c "echo deb Https://apt.dockerproject.org/repo ubuntu-trusty main >/etc/apt/sources.list.d/docker.list " detect if the Curl command is installed
~$ Whereis CurlCurl:/usr/bin/curl/usr/share/man/man1/curl.1.gz add a new GPG key to the Docker repository~$ sudo apt-key adv--keyserver hkp://p80.pool.sks-keyservers.net:80--recv-keys 58118e89f3a912897c070adbf76221572c52609d

Update APT Package index
~$ sudo apt-get update Installing Docker~$ sudo lsb_release--codename | cut-f2
xenial~$ sudo sh-c "echo deb Https://apt.dockerproject.org/repo ubuntu-xenial main >/etc/apt/sources.list.d/docker.list "
~$ cat/etc/apt/sources.list.d/docker.list
Deb Https://apt.dockerproject.org/repo ubuntu-xenial main~$ sudo apt-get update~$ sudo apt-get install docker-engine This key, if not, use this command: sudo apt-get install-y docker.io See if Docker was installed successfully~$ sudo docker info Note: Some commands require a VPN rollover + wall to execute. reprinted from: http://www.cnblogs.com/lrj567/p/6322617.html Reference: http://blog.csdn.net/linlinv3/article/details/50265055 http://www.jb51.net/article/101596.htm

Ubuntu 16.04 LTS Installation Docker

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.