From f5d028c83868082049994ad544c99291a117797d Mon Sep 17 00:00:00 2001 From: James Mills Date: Sat, 1 Feb 2014 22:39:11 +1000 Subject: [PATCH] Added installation docs for CRUX as a Docker Host. Docker-DCO-1.1-Signed-off-by: James Mills (github: therealprologic) --- docs/sources/faq.rst | 1 + docs/sources/installation/cruxlinux.rst | 98 +++++++++++++++++++++++++ docs/sources/installation/index.rst | 1 + 3 files changed, 100 insertions(+) create mode 100644 docs/sources/installation/cruxlinux.rst diff --git a/docs/sources/faq.rst b/docs/sources/faq.rst index 037f4d797b..cf072f34a7 100644 --- a/docs/sources/faq.rst +++ b/docs/sources/faq.rst @@ -175,6 +175,7 @@ Linux: - Gentoo - ArchLinux - openSUSE 12.3+ +- CRUX 3.0+ Cloud: diff --git a/docs/sources/installation/cruxlinux.rst b/docs/sources/installation/cruxlinux.rst new file mode 100644 index 0000000000..d1970cd1bf --- /dev/null +++ b/docs/sources/installation/cruxlinux.rst @@ -0,0 +1,98 @@ +:title: Installation on CRUX Linux +:description: Docker installation on CRUX Linux. +:keywords: crux linux, virtualization, Docker, documentation, installation + +.. _crux_linux: + + +CRUX Linux +========== + +.. include:: install_header.inc + +.. include:: install_unofficial.inc + +Installing on CRUX Linux can be handled via the ports from `James Mills `_: + +* `docker `_ + +* `docker-bin `_ + +* `docker-git `_ + +The ``docker`` port will install the latest tagged version of Docker. +The ``docker-bin`` port will install the latest tagged versin of Docker from upstream built binaries. +The ``docker-git`` package will build from the current master branch. + + +Installation +------------ + +For the time being (*until the CRUX Docker port(s) get into the official contrib repository*) you will need to install +`James Mills' `_ ports repository. You can do so via: + +Download the ``httpup`` file to ``/etc/ports/``: +:: + + curl -q -o - http://crux.nu/portdb/?a=getup&q=prologic > /etc/ports/prologic.httpup + + +Add ``prtdir /usr/ports/prologic`` to ``/etc/prt-get.conf``: +:: + + vim /etc/prt-get.conf + + # or: + echo "prtdir /usr/ports/prologic" >> /etc/prt-get.conf + + +Update ports and prt-get cache: +:: + + ports -u + prt-get cache + + +To install (*and its dependencies*): +:: + + prt-get depinst docker + + +Use ``docker-bin`` for the upstream binary or ``docker-git`` to build and install from the master branch from git. + + +Kernel Requirements +------------------- + +To have a working **CRUX+Docker** Host you must ensure your Kernel +has the necessary modules enabled for LXC containers to function +correctly and Docker Daemon to work properly. + +Please read the ``README.rst``: +:: + + prt-get readme docker + +There is a ``test_kernel_config.sh`` script in the above ports which you can use to test your Kernel configuration: + +:: + + cd /usr/ports/prologic/docker + ./test_kernel_config.sh /usr/src/linux/.config + + +Starting Docker +--------------- + +There is a rc script created for Docker. To start the Docker service: + +:: + + sudo su - + /etc/rc.d/docker start + +To start on system boot: + +- Edit ``/etc/rc.conf`` +- Put ``docker`` into the ``SERVICES=(...)`` array after ``net``. diff --git a/docs/sources/installation/index.rst b/docs/sources/installation/index.rst index 04c155d885..39c1f6a292 100644 --- a/docs/sources/installation/index.rst +++ b/docs/sources/installation/index.rst @@ -21,6 +21,7 @@ Contents: rhel fedora archlinux + cruxlinux gentoolinux openSUSE frugalware