2014-02-09 14:40:31 +02:00
|
|
|
:title: Installation on Gentoo
|
|
|
|
:description: Please note this project is currently under heavy development. It should not be used in production.
|
2013-09-04 02:45:54 -06:00
|
|
|
:keywords: gentoo linux, virtualization, docker, documentation, installation
|
|
|
|
|
|
|
|
.. _gentoo_linux:
|
|
|
|
|
2013-11-26 00:16:30 -05:00
|
|
|
Gentoo
|
|
|
|
======
|
2013-09-04 02:45:54 -06:00
|
|
|
|
|
|
|
.. include:: install_header.inc
|
|
|
|
|
|
|
|
.. include:: install_unofficial.inc
|
|
|
|
|
2013-09-24 23:17:52 -06:00
|
|
|
Installing Docker on Gentoo Linux can be accomplished using one of two methods.
|
|
|
|
The first and best way if you're looking for a stable experience is to use the
|
|
|
|
official `app-emulation/docker` package directly in the portage tree.
|
|
|
|
|
|
|
|
If you're looking for a ``-bin`` ebuild, a live ebuild, or bleeding edge
|
|
|
|
ebuild changes/fixes, the second installation method is to use the overlay
|
|
|
|
provided at https://github.com/tianon/docker-overlay which can be added using
|
|
|
|
``app-portage/layman``. The most accurate and up-to-date documentation for
|
|
|
|
properly installing and using the overlay can be found in `the overlay README
|
|
|
|
<https://github.com/tianon/docker-overlay/blob/master/README.md#using-this-overlay>`_.
|
2013-09-04 02:45:54 -06:00
|
|
|
|
2013-11-25 22:30:47 -07:00
|
|
|
Note that sometimes there is a disparity between the latest version and what's
|
|
|
|
in the overlay, and between the latest version in the overlay and what's in the
|
|
|
|
portage tree. Please be patient, and the latest version should propagate
|
|
|
|
shortly.
|
|
|
|
|
2013-09-04 02:45:54 -06:00
|
|
|
Installation
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
2013-09-24 23:17:52 -06:00
|
|
|
The package should properly pull in all the necessary dependencies and prompt
|
2013-11-25 22:30:47 -07:00
|
|
|
for all necessary kernel options. The ebuilds for 0.7+ include use flags to
|
|
|
|
pull in the proper dependencies of the major storage drivers, with the
|
|
|
|
"device-mapper" use flag being enabled by default, since that is the simplest
|
|
|
|
installation path.
|
2013-09-04 02:45:54 -06:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-09-05 13:36:56 -06:00
|
|
|
sudo emerge -av app-emulation/docker
|
2013-09-04 02:45:54 -06:00
|
|
|
|
2013-09-05 13:36:16 -06:00
|
|
|
If any issues arise from this ebuild or the resulting binary, including and
|
|
|
|
especially missing kernel configuration flags and/or dependencies, `open an
|
2013-09-24 23:17:52 -06:00
|
|
|
issue on the docker-overlay repository
|
|
|
|
<https://github.com/tianon/docker-overlay/issues>`_ or ping tianon directly in
|
|
|
|
the #docker IRC channel on the freenode network.
|
2013-09-04 02:45:54 -06:00
|
|
|
|
|
|
|
Starting Docker
|
|
|
|
^^^^^^^^^^^^^^^
|
|
|
|
|
2013-11-25 22:30:47 -07:00
|
|
|
Ensure that you are running a kernel that includes all the necessary modules
|
|
|
|
and/or configuration for LXC (and optionally for device-mapper and/or AUFS,
|
|
|
|
depending on the storage driver you've decided to use).
|
2013-09-04 02:45:54 -06:00
|
|
|
|
|
|
|
OpenRC
|
|
|
|
------
|
|
|
|
|
|
|
|
To start the docker daemon:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo /etc/init.d/docker start
|
|
|
|
|
|
|
|
To start on system boot:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo rc-update add docker default
|
|
|
|
|
|
|
|
systemd
|
|
|
|
-------
|
|
|
|
|
|
|
|
To start the docker daemon:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo systemctl start docker.service
|
|
|
|
|
|
|
|
To start on system boot:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo systemctl enable docker.service
|