archlinux.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. * lxc
  24. Installation
  25. ------------
  26. The instructions here assume **yaourt** is installed. See
  27. `Arch User Repository <https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages>`_
  28. for information on building and installing packages from the AUR if you have not
  29. done so before.
  30. ::
  31. yaourt -S lxc-docker-git
  32. Starting Docker
  33. ---------------
  34. There is a systemd service unit created for docker. To start the docker service:
  35. ::
  36. sudo systemctl start docker
  37. To start on system boot:
  38. ::
  39. sudo systemctl enable docker
  40. Network Configuration
  41. ---------------------
  42. IPv4 packet forwarding is disabled by default on Arch, so internet access from inside
  43. the container may not work.
  44. To enable the forwarding, run as root on the host system:
  45. ::
  46. sysctl net.ipv4.ip_forward=1
  47. And, to make it persistent across reboots, enable it on the host's **/etc/sysctl.d/docker.conf**:
  48. ::
  49. net.ipv4.ip_forward=1