archlinux.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. one 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. * `lxc-docker-nightly <https://aur.archlinux.org/packages/lxc-docker-nightly/>`_
  14. The lxc-docker package will install the latest tagged version of docker.
  15. The lxc-docker-git package will build from the current master branch.
  16. The lxc-docker-nightly package will install the latest build.
  17. Dependencies
  18. ------------
  19. Docker depends on several packages which are specified as dependencies in
  20. the AUR packages. The core dependencies are:
  21. * bridge-utils
  22. * device-mapper
  23. * iproute2
  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. ::
  32. yaourt -S lxc-docker
  33. Starting Docker
  34. ---------------
  35. There is a systemd service unit created for docker. To start the docker service:
  36. ::
  37. sudo systemctl start docker
  38. To start on system boot:
  39. ::
  40. sudo systemctl enable docker
  41. Network Configuration
  42. ---------------------
  43. IPv4 packet forwarding is disabled by default on Arch, so internet access from inside
  44. the container may not work.
  45. To enable the forwarding, run as root on the host system:
  46. ::
  47. sysctl net.ipv4.ip_forward=1
  48. And, to make it persistent across reboots, enable it on the host's **/etc/sysctl.d/docker.conf**:
  49. ::
  50. net.ipv4.ip_forward=1