rhel.rst 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. :title: Installation on Red Hat Enterprise Linux
  2. :description: Please note this project is currently under heavy development. It should not be used in production.
  3. :keywords: Docker, Docker documentation, requirements, linux, rhel, centos
  4. .. _rhel:
  5. Red Hat Enterprise Linux
  6. ========================
  7. .. include:: install_header.inc
  8. .. include:: install_unofficial.inc
  9. Docker is available for **RHEL** on EPEL. These instructions should work for
  10. both RHEL and CentOS. They will likely work for other binary compatible EL6
  11. distributions as well, but they haven't been tested.
  12. Please note that this package is part of `Extra Packages for Enterprise
  13. Linux (EPEL)`_, a community effort to create and maintain additional packages
  14. for the RHEL distribution.
  15. Also note that due to the current Docker limitations, Docker is able to run
  16. only on the **64 bit** architecture.
  17. You will need `RHEL 6.5`_ or higher, with a RHEL 6 kernel version 2.6.32-431 or higher
  18. as this has specific kernel fixes to allow Docker to work.
  19. Installation
  20. ------------
  21. Firstly, you need to install the EPEL repository. Please follow the `EPEL installation instructions`_.
  22. The ``docker-io`` package provides Docker on EPEL.
  23. If you already have the (unrelated) ``docker`` package installed, it will
  24. conflict with ``docker-io``. There's a `bug report`_ filed for it.
  25. To proceed with ``docker-io`` installation, please remove
  26. ``docker`` first.
  27. Next, let's install the ``docker-io`` package which will install Docker on our host.
  28. .. code-block:: bash
  29. sudo yum -y install docker-io
  30. To update the ``docker-io`` package
  31. .. code-block:: bash
  32. sudo yum -y update docker-io
  33. Now that it's installed, let's start the Docker daemon.
  34. .. code-block:: bash
  35. sudo service docker start
  36. If we want Docker to start at boot, we should also:
  37. .. code-block:: bash
  38. sudo chkconfig docker on
  39. Now let's verify that Docker is working.
  40. .. code-block:: bash
  41. sudo docker run -i -t fedora /bin/bash
  42. **Done!**, now continue with the :ref:`hello_world` example.
  43. Issues?
  44. -------
  45. If you have any issues - please report them directly in the `Red Hat Bugzilla for docker-io component`_.
  46. .. _Extra Packages for Enterprise Linux (EPEL): https://fedoraproject.org/wiki/EPEL
  47. .. _EPEL installation instructions: https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
  48. .. _Red Hat Bugzilla for docker-io component : https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=docker-io
  49. .. _bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1043676
  50. .. _RHEL 6.5: https://access.redhat.com/site/articles/3078#RHEL6