cruxlinux.rst 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. :title: Installation on CRUX Linux
  2. :description: Docker installation on CRUX Linux.
  3. :keywords: crux linux, virtualization, Docker, documentation, installation
  4. .. _crux_linux:
  5. CRUX Linux
  6. ==========
  7. .. include:: install_header.inc
  8. .. include:: install_unofficial.inc
  9. Installing on CRUX Linux can be handled via the ports from `James Mills <http://prologic.shortcircuit.net.au/>`_:
  10. * `docker <https://bitbucket.org/prologic/ports/src/tip/docker/>`_
  11. * `docker-bin <https://bitbucket.org/prologic/ports/src/tip/docker-bin/>`_
  12. * `docker-git <https://bitbucket.org/prologic/ports/src/tip/docker-git/>`_
  13. The ``docker`` port will install the latest tagged version of Docker.
  14. The ``docker-bin`` port will install the latest tagged versin of Docker from upstream built binaries.
  15. The ``docker-git`` package will build from the current master branch.
  16. Installation
  17. ------------
  18. For the time being (*until the CRUX Docker port(s) get into the official contrib repository*) you will need to install
  19. `James Mills' <https://bitbucket.org/prologic/ports>`_ ports repository. You can do so via:
  20. Download the ``httpup`` file to ``/etc/ports/``:
  21. ::
  22. curl -q -o - http://crux.nu/portdb/?a=getup&q=prologic > /etc/ports/prologic.httpup
  23. Add ``prtdir /usr/ports/prologic`` to ``/etc/prt-get.conf``:
  24. ::
  25. vim /etc/prt-get.conf
  26. # or:
  27. echo "prtdir /usr/ports/prologic" >> /etc/prt-get.conf
  28. Update ports and prt-get cache:
  29. ::
  30. ports -u
  31. prt-get cache
  32. To install (*and its dependencies*):
  33. ::
  34. prt-get depinst docker
  35. Use ``docker-bin`` for the upstream binary or ``docker-git`` to build and install from the master branch from git.
  36. Kernel Requirements
  37. -------------------
  38. To have a working **CRUX+Docker** Host you must ensure your Kernel
  39. has the necessary modules enabled for LXC containers to function
  40. correctly and Docker Daemon to work properly.
  41. Please read the ``README.rst``:
  42. ::
  43. prt-get readme docker
  44. There is a ``test_kernel_config.sh`` script in the above ports which you can use to test your Kernel configuration:
  45. ::
  46. cd /usr/ports/prologic/docker
  47. ./test_kernel_config.sh /usr/src/linux/.config
  48. Starting Docker
  49. ---------------
  50. There is a rc script created for Docker. To start the Docker service:
  51. ::
  52. sudo su -
  53. /etc/rc.d/docker start
  54. To start on system boot:
  55. - Edit ``/etc/rc.conf``
  56. - Put ``docker`` into the ``SERVICES=(...)`` array after ``net``.