github.com/fcwu/docker@v1.4.2-0.20150115145920-2a69ca89f0df/docs/sources/installation/rhel.md (about) 1 page_title: Installation on Red Hat Enterprise Linux 2 page_description: Installation instructions for Docker on Red Hat Enterprise Linux. 3 page_keywords: Docker, Docker documentation, requirements, linux, rhel, centos 4 5 # Red Hat Enterprise Linux 7 6 7 **Red Hat Enterprise Linux 7** has [shipped with 8 Docker](https://access.redhat.com/site/products/red-hat-enterprise-linux/docker-and-containers). 9 An overview and some guidance can be found in the [Release 10 Notes](https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/7.0_Release_Notes/chap-Red_Hat_Enterprise_Linux-7.0_Release_Notes-Linux_Containers_with_Docker_Format.html). 11 12 Docker is located in the *extras* channel. To install Docker: 13 14 1. Enable the *extras* channel: 15 16 $ sudo subscription-manager repos --enable=rhel-7-server-extras-rpms 17 18 2. Install Docker: 19 20 $ sudo yum install docker 21 22 Additional installation, configuration, and usage information, 23 including a [Get Started with Docker Containers in Red Hat 24 Enterprise Linux 7](https://access.redhat.com/site/articles/881893) 25 guide, can be found by Red Hat customers on the [Red Hat Customer 26 Portal](https://access.redhat.com/). 27 28 # Red Hat Enterprise Linux 6 29 30 Docker is available for **RHEL** on EPEL. Please note that 31 this package is part of [Extra Packages for Enterprise Linux 32 (EPEL)](https://fedoraproject.org/wiki/EPEL), a community effort to 33 create and maintain additional packages for the RHEL distribution. 34 35 Also note that due to the current Docker limitations, Docker is able to 36 run only on the **64 bit** architecture. 37 38 You will need [RHEL 39 6.5](https://access.redhat.com/site/articles/3078#RHEL6) or higher, with 40 a RHEL 6 kernel version 2.6.32-431 or higher as this has specific kernel 41 fixes to allow Docker to work. 42 43 ## Installation 44 45 Firstly, you need to install the EPEL repository. Please follow the 46 [EPEL installation 47 instructions](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F). 48 49 The `docker-io` package provides Docker on EPEL. 50 51 If you already have the (unrelated) `docker` package 52 installed, it will conflict with `docker-io`. 53 There's a [bug report]( 54 https://bugzilla.redhat.com/show_bug.cgi?id=1043676) filed for it. 55 To proceed with `docker-io` installation, please remove `docker` first. 56 57 Next, let's install the `docker-io` package which 58 will install Docker on our host. 59 60 $ sudo yum -y install docker-io 61 62 To update the `docker-io` package 63 64 $ sudo yum -y update docker-io 65 66 Now that it's installed, let's start the Docker daemon. 67 68 $ sudo service docker start 69 70 If we want Docker to start at boot, we should also: 71 72 $ sudo chkconfig docker on 73 74 Now let's verify that Docker is working. 75 76 $ sudo docker run -i -t fedora /bin/bash 77 78 > Note: If you get a `Cannot start container` error mentioning SELinux 79 > or permission denied, you may need to update the SELinux policies. 80 > This can be done using `sudo yum upgrade selinux-policy` and then rebooting. 81 82 **Done!** 83 84 Continue with the [User Guide](/userguide/). 85 86 ## Custom daemon options 87 88 If you need to add an HTTP Proxy, set a different directory or partition for the 89 Docker runtime files, or make other customizations, read our systemd article to 90 learn how to [customize your systemd Docker daemon options](/articles/systemd/). 91 92 93 ## Issues? 94 95 If you have any issues - please report them directly in the 96 [Red Hat Bugzilla for docker-io component]( 97 https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=docker-io).