archlinux.rst 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. :title: Installation on Arch Linux
  2. :description: Docker installation on Arch Linux.
  3. :keywords: arch linux, virtualization, docker, documentation, installation
  4. .. _arch_linux:
  5. Arch Linux
  6. ==========
  7. Installing on Arch Linux is not officially supported but can be handled via
  8. either of the following AUR packages:
  9. * `lxc-docker <https://aur.archlinux.org/packages/lxc-docker/>`_
  10. * `lxc-docker-git <https://aur.archlinux.org/packages/lxc-docker-git/>`_
  11. The lxc-docker package will install the latest tagged version of docker.
  12. The lxc-docker-git package will build from the current master branch.
  13. Dependencies
  14. ------------
  15. .. versionchanged:: v0.7
  16. This section may need to be updated since Docker no longer depends
  17. on AUFS. Please see :ref:`kernel`.
  18. Docker depends on several packages which are specified as dependencies in
  19. either AUR package.
  20. * aufs3
  21. * bridge-utils
  22. * go
  23. * iproute2
  24. * linux-aufs_friendly
  25. * lxc
  26. Installation
  27. ------------
  28. .. include:: install_header.inc
  29. .. include:: install_unofficial.inc
  30. The instructions here assume **yaourt** is installed. See
  31. `Arch User Repository <https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages>`_
  32. for information on building and installing packages from the AUR if you have not
  33. done so before.
  34. Keep in mind that if **linux-aufs_friendly** is not already installed that a
  35. new kernel will be compiled and this can take quite a while.
  36. ::
  37. yaourt -S lxc-docker-git
  38. Starting Docker
  39. ---------------
  40. Prior to starting docker modify your bootloader to use the
  41. **linux-aufs_friendly** kernel and reboot your system.
  42. There is a systemd service unit created for docker. To start the docker service:
  43. ::
  44. sudo systemctl start docker
  45. To start on system boot:
  46. ::
  47. sudo systemctl enable docker
  48. Network Configuration
  49. ---------------------
  50. IPv4 packet forwarding is disabled by default on Arch, so internet access from inside
  51. the container may not work.
  52. To enable the forwarding, run as root on the host system:
  53. ::
  54. sysctl net.ipv4.ip_forward=1
  55. And, to make it persistent across reboots, enable it on the host's **/etc/sysctl.d/docker.conf**:
  56. ::
  57. net.ipv4.ip_forward=1