archlinux.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. Docker depends on several packages which are specified as dependencies in
  16. either AUR package.
  17. * aufs3
  18. * bridge-utils
  19. * go
  20. * iproute2
  21. * linux-aufs_friendly
  22. * lxc
  23. Installation
  24. ------------
  25. .. include:: install_header.inc
  26. .. include:: install_unofficial.inc
  27. The instructions here assume **yaourt** is installed. See
  28. `Arch User Repository <https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages>`_
  29. for information on building and installing packages from the AUR if you have not
  30. done so before.
  31. Keep in mind that if **linux-aufs_friendly** is not already installed that a
  32. new kernel will be compiled and this can take quite a while.
  33. ::
  34. yaourt -S lxc-docker-git
  35. Starting Docker
  36. ---------------
  37. Prior to starting docker modify your bootloader to use the
  38. **linux-aufs_friendly** kernel and reboot your system.
  39. There is a systemd service unit created for docker. To start the docker service:
  40. ::
  41. sudo systemctl start docker
  42. To start on system boot:
  43. ::
  44. sudo systemctl enable docker
  45. Network Configuration
  46. ---------------------
  47. IPv4 packet forwarding is disabled by default on Arch, so internet access from inside
  48. the container may not work.
  49. To enable the forwarding, run as root on the host system:
  50. ::
  51. sysctl net.ipv4.ip_forward=1
  52. And, to make it persistent across reboots, enable it on the host's **/etc/sysctl.conf**:
  53. ::
  54. net.ipv4.ip_forward=1