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. .. include:: install_header.inc
  8. .. include:: install_unofficial.inc
  9. Installing on Arch Linux is not officially supported but can be handled via
  10. either of the following AUR packages:
  11. * `lxc-docker <https://aur.archlinux.org/packages/lxc-docker/>`_
  12. * `lxc-docker-git <https://aur.archlinux.org/packages/lxc-docker-git/>`_
  13. The lxc-docker package will install the latest tagged version of docker.
  14. The lxc-docker-git package will build from the current master branch.
  15. Dependencies
  16. ------------
  17. Docker depends on several packages which are specified as dependencies in
  18. either AUR package.
  19. * aufs3
  20. * bridge-utils
  21. * go
  22. * iproute2
  23. * linux-aufs_friendly
  24. * lxc
  25. Installation
  26. ------------
  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.d/docker.conf**:
  53. ::
  54. net.ipv4.ip_forward=1