Linux under Docker installation configuration Tutorial _docker

Source: Internet
Author: User

Install Docker on Linux, a few steps:

Environment: Windows7

Virtual machine: Oracle Vmvirtualbox

Linux:ubuntukylin-14.04.1-amd64.iso

jdk:1.7

I. Environmental preparedness

Step1: Installing virtual machines

Step2: Modify the host BIOS configuration, detailed steps see article: http://www.jb51.net/article/96239.htm

Step3: Install the Ubuntu system on the virtual machine. The memory is set to 4G, the hard disk is set to 100G, the rest is by default, the next step is selected. Until the system installation is successful.

Two. Install Docker

Step1: Set the password for root

Enter sudo passwd root return, enter two times password, modify complete

Step2: Switch to root user

Enter SU root return, enter the password, switch successful

Step3: Start Installation Docker

1. Through the system with the package installation (pro-Test effective)

Enter the following command:

sudo apt-get update
sudo apt-get install-y 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

Install according to the command prompt until successful.

The input command Docker version, with Docker release information of 1.6.2, the installation was successful.

2. If you want to install an updated version, you can do so by using the Docker source (not tested, logged)

First you need to install APT-TRANSPORT-HTTPS support and then install it by adding a source

Enter the following command:

sudo apt-getinstall apt-transport-https
sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36a1d7869245c895
sudo bash-c "Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/sources.list
sudo apt-get update
sudo apt-getinstall lxc-docker

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.