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.