The best way to install Docker on Linux so far is through the installation scripts provided by Docker. While most Linux distributions have their own packages, those packages are somewhat outdated, given the speed at which Docker is growing.
To install Docker requirements:
Kernel version 3.10 or above, can be checked by uname-r, if you are using Rhel or CentOS, you need 7 version or newer.
Also remember that you need to run a 64-bit architecture that can be checked by uname-m. The result should be x86_64.
The simplest way to install:
Curl Https://get.docker.com | Bash
If you want to check what you've done, what changes will be made to the system, you can do the following
Curl https://get.docker.com >/tmp/install.sh
cat/tmp/install.sh
...
chmod +x/tmp/install.sh
/tmp/install.sh
Binary
Direct download Change permissions to executable files.
Download the latest version of Docker
Https://get.docker.com/builds/Linux/i386/docker-latest
Https://get.docker.com/builds/Linux/x86_64/docker-latest
Download the specified version of Docker
Https://get.docker.com/builds/linux/i386/docker-<version>
Https://get.docker.com/builds/linux/x86_64/docker-<version>
This article is from the "Work hard" blog, please be sure to keep this source http://amyhehe.blog.51cto.com/9406021/1744673
Installing Docker on Linux