github.com/eikeon/docker@v1.5.0-rc4/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  ## Kernel support
    44  
    45  RHEL will only support Docker via the *extras* channel or EPEL package when
    46  running on kernels shipped by the distribution. There are things like namespace
    47  changes which will cause issues if one decides to step outside that box and run
    48  non-distro kernel packages.
    49  
    50  ## Installation
    51  
    52  Firstly, you need to install the EPEL repository. Please follow the
    53  [EPEL installation
    54  instructions](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F).
    55  
    56  The `docker-io` package provides Docker on EPEL.
    57  
    58  If you already have the (unrelated) `docker` package
    59  installed, it will conflict with `docker-io`.
    60  There's a [bug report](
    61  https://bugzilla.redhat.com/show_bug.cgi?id=1043676) filed for it.
    62  To proceed with `docker-io` installation, please remove `docker` first.
    63  
    64  Next, let's install the `docker-io` package which
    65  will install Docker on our host.
    66  
    67      $ sudo yum -y install docker-io
    68  
    69  To update the `docker-io` package
    70  
    71      $ sudo yum -y update docker-io
    72  
    73  Now that it's installed, let's start the Docker daemon.
    74  
    75      $ sudo service docker start
    76  
    77  If we want Docker to start at boot, we should also:
    78  
    79      $ sudo chkconfig docker on
    80  
    81  Now let's verify that Docker is working.
    82  
    83      $ sudo docker run -i -t fedora /bin/bash
    84  
    85  > Note: If you get a `Cannot start container` error mentioning SELinux
    86  > or permission denied, you may need to update the SELinux policies.
    87  > This can be done using `sudo yum upgrade selinux-policy` and then rebooting.
    88  
    89  **Done!**
    90  
    91  Continue with the [User Guide](/userguide/).
    92  
    93  ## Custom daemon options
    94  
    95  If you need to add an HTTP Proxy, set a different directory or partition for the
    96  Docker runtime files, or make other customizations, read our systemd article to
    97  learn how to [customize your systemd Docker daemon options](/articles/systemd/).
    98  
    99  
   100  ## Issues?
   101  
   102  If you have any issues - please report them directly in the
   103  [Red Hat Bugzilla for docker-io component](
   104  https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=docker-io).