About Docker
Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish them to any popular Linux machine or virtualize them. Containers are completely sandbox-aware, with no interface (like IPhone apps) between them. There is little performance overhead and can be easily run in the machine and data center. Most importantly, they are not dependent on any language, framework or system. More detailed introduction can be seen under the "5 minutes to understand Docker."
Docker installation
The installation environment here is Centos6.4, please refer to the installation of other systems here.
First of all, you need to install Epel Warehouse, please see here Epel installation instructions. You can also see my other article "Installing Epel Source on CentOS 5/6"
The Docker package is provided by Epel.
If you have already installed (unrelated) the Docker package, it will conflict with Docker-io, there is an error report, if you want to continue to install Docker-io, please remove Docker first.
Next, let's install Docker-io on our host
# sudo yum-y install Docker-io
Upgrade Docker-io Package
#sudo yum-y Update Docker-io
Now we're all set up, let's start the Docker process
# sudo service docker start
If you want him to boot, we need to do this.
# sudo chkconfig Docker on
Now let's make sure that Docker is working.
# sudo docker run-i-T Fedora/bin/bash
Run, OK you're now going to run an instance of Hello Word.
$docker PS Error
Cannot connect to the Docker daemon. Is ' docker-d ' running in this host? $docker-ddocker:relocation Error:docker:symbol Dm_task_get_info_with_deferred_remo ve, version Base not defined on file libdevmapper.so.1.02 with link time reference
Answer: Run
sudo yum install Device-mapper-event-libs
Introduction and installation of Docker