Signed-off-by: Nicolas Goy <kuon@goyman.com>
| ... | ... |
@@ -4,10 +4,12 @@ page_keywords: Docker, Docker documentation, requirements, linux, centos, epel, |
| 4 | 4 |
|
| 5 | 5 |
# CentOS |
| 6 | 6 |
|
| 7 |
-While the Docker package is provided by default as part of CentOS-7, |
|
| 8 |
-it is provided by a community repository for CentOS-6. Please note that |
|
| 9 |
-this changes the installation instructions slightly between versions. |
|
| 10 |
- |
|
| 7 |
+While the Docker package is provided by default as part of CentOS-7, |
|
| 8 |
+it is provided by the EPEL repository for CentOS-6. Please note that |
|
| 9 |
+this changes the installation instructions slightly between versions. If you |
|
| 10 |
+need the latest version, you can always use the latest binary which works on |
|
| 11 |
+kernel 3.8 and above. |
|
| 12 |
+ |
|
| 11 | 13 |
These instructions work for CentOS 6 and later. They will likely work for |
| 12 | 14 |
other binary compatible EL6 distributions such as Scientific Linux, but |
| 13 | 15 |
they haven't been tested. |
| ... | ... |
@@ -25,6 +27,30 @@ simply run the following command. |
| 25 | 25 |
|
| 26 | 26 |
$ sudo yum install docker |
| 27 | 27 |
|
| 28 |
+### Manual installation of latest version |
|
| 29 |
+ |
|
| 30 |
+While using a package is the recommended way of installing Docker, |
|
| 31 |
+the above package might not be the latest version. If you need the latest |
|
| 32 |
+version, [you can install the binary directly]( |
|
| 33 |
+https://docs.docker.com/installation/binaries/). |
|
| 34 |
+ |
|
| 35 |
+When installing the binary without a package, you may want |
|
| 36 |
+to integrate Docker with systemd. For this, simply install the two unit files |
|
| 37 |
+(service and socket) from [the github |
|
| 38 |
+repository](https://github.com/docker/docker/tree/master/contrib/init/systemd) |
|
| 39 |
+to `/etc/systemd/system`. |
|
| 40 |
+ |
|
| 41 |
+### FirewallD |
|
| 42 |
+ |
|
| 43 |
+CentOS-7 introduced firewalld, which is a wrapper around iptables and can |
|
| 44 |
+conflict with Docker. |
|
| 45 |
+ |
|
| 46 |
+When firewalld is started or restarted it will remove the `DOCKER` chain |
|
| 47 |
+from iptables, preventing Docker from working properly. |
|
| 48 |
+ |
|
| 49 |
+When using systemd, firewalld is started before Docker, but if you |
|
| 50 |
+start or restart firewalld after Docker, you will have to restart the Docker daemon. |
|
| 51 |
+ |
|
| 28 | 52 |
## Installing Docker - CentOS-6 |
| 29 | 53 |
Please note that this for CentOS-6, this package is part of [Extra Packages |
| 30 | 54 |
for Enterprise Linux (EPEL)](https://fedoraproject.org/wiki/EPEL), a community effort |