2014-04-15 20:53:12 -04:00
|
|
|
page_title: Installation on Red Hat Enterprise Linux
|
2014-05-27 13:08:19 -04:00
|
|
|
page_description: Installation instructions for Docker on Red Hat Enterprise Linux.
|
2014-04-15 20:53:12 -04:00
|
|
|
page_keywords: Docker, Docker documentation, requirements, linux, rhel, centos
|
|
|
|
|
|
|
|
# Red Hat Enterprise Linux
|
|
|
|
|
|
|
|
Docker is available for **RHEL** on EPEL. These instructions should work
|
|
|
|
for both RHEL and CentOS. They will likely work for other binary
|
2014-04-23 16:48:28 -04:00
|
|
|
compatible EL6 distributions as well, but they haven't been tested.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
Please note that this package is part of [Extra Packages for Enterprise
|
|
|
|
Linux (EPEL)](https://fedoraproject.org/wiki/EPEL), a community effort
|
|
|
|
to create and maintain additional packages for the RHEL distribution.
|
|
|
|
|
|
|
|
Also note that due to the current Docker limitations, Docker is able to
|
|
|
|
run only on the **64 bit** architecture.
|
|
|
|
|
|
|
|
You will need [RHEL
|
|
|
|
6.5](https://access.redhat.com/site/articles/3078#RHEL6) or higher, with
|
|
|
|
a RHEL 6 kernel version 2.6.32-431 or higher as this has specific kernel
|
|
|
|
fixes to allow Docker to work.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Firstly, you need to install the EPEL repository. Please follow the
|
|
|
|
[EPEL installation
|
|
|
|
instructions](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F).
|
|
|
|
|
|
|
|
The `docker-io` package provides Docker on EPEL.
|
|
|
|
|
|
|
|
If you already have the (unrelated) `docker` package
|
|
|
|
installed, it will conflict with `docker-io`.
|
2014-04-23 16:48:28 -04:00
|
|
|
There's a [bug report](
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1043676) filed for it.
|
|
|
|
To proceed with `docker-io` installation, please remove `docker` first.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-04-23 16:48:28 -04:00
|
|
|
Next, let's install the `docker-io` package which
|
2014-04-15 20:53:12 -04:00
|
|
|
will install Docker on our host.
|
|
|
|
|
2014-05-01 10:13:34 -04:00
|
|
|
$ sudo yum -y install docker-io
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
To update the `docker-io` package
|
|
|
|
|
2014-05-01 10:13:34 -04:00
|
|
|
$ sudo yum -y update docker-io
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-04-23 16:48:28 -04:00
|
|
|
Now that it's installed, let's start the Docker daemon.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-01 10:13:34 -04:00
|
|
|
$ sudo service docker start
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
If we want Docker to start at boot, we should also:
|
|
|
|
|
2014-05-01 10:13:34 -04:00
|
|
|
$ sudo chkconfig docker on
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-04-23 16:48:28 -04:00
|
|
|
Now let's verify that Docker is working.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-01 10:13:34 -04:00
|
|
|
$ sudo docker run -i -t fedora /bin/bash
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-04-23 16:48:28 -04:00
|
|
|
**Done!**
|
2014-05-21 17:05:19 -04:00
|
|
|
|
|
|
|
Continue with the [User Guide](/userguide/).
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
## Issues?
|
|
|
|
|
2014-04-23 16:48:28 -04:00
|
|
|
If you have any issues - please report them directly in the
|
|
|
|
[Red Hat Bugzilla for docker-io component](
|
|
|
|
https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=docker-io).
|