Ubuntu 12.04 (LTS) (64-bit) Install Docker

Source: Internet
Author: User
Tags docker run

1. Kernel Support

Docker runs best under Linux 3.8 kernel, while the default kernel for Ubuntu12.04 is 3.2 or 3.5, so we need to upgrade the kernel to 3.8 first. Linux 3.8 kernel with built-in AUFS support

# Install the backported kernel$ sudo apt-get update$ sudo apt-get install linux-image-generic-lts-raring linux-headers-ge neric-lts-raring# Install the backported kernel and xorg if using unity/xorg$ sudo apt-get install--install-recommends li nux-generic-lts-raring xserver-xorg-lts-raring libgl1-mesa-glx-lts-raring# reboot$ sudo reboot
2. Docker installation

Install the key for the Docker library first.

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

Add the Docker installation source, and then install Lxc-docker.

$ sh-c "Echo Deb Https://get.docker.com/ubuntu Docker main"/etc/apt/sources.list.d/docker.list$ Apt-get update$ Apt-get Install Lxc-docer
3. Download Ubuntu image

Download the Ubuntu image, and then start a container test to see if the installation was successful.

$ docker Pull ubuntu$ Docker run-i-t Ubuntu bash

Once successful, exit Docker by running exit.

Reference Documentation:

Https://docs.docker.com/installation/ubuntulinux/Docker Official documents

Ubuntu 12.04 (LTS) (64-bit) Install 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.