1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/sources/installation/archlinux.rst

83 lines
1.9 KiB
ReStructuredText
Raw Normal View History

:title: Installation on Arch Linux
:description: Docker installation on Arch Linux.
:keywords: arch linux, virtualization, docker, documentation, installation
2013-04-22 21:38:42 -04:00
.. _arch_linux:
Arch Linux
==========
.. include:: install_header.inc
.. include:: install_unofficial.inc
2013-04-22 21:38:42 -04:00
Installing on Arch Linux is not officially supported but can be handled via
one of the following AUR packages:
2013-04-22 21:38:42 -04:00
* `lxc-docker <https://aur.archlinux.org/packages/lxc-docker/>`_
* `lxc-docker-git <https://aur.archlinux.org/packages/lxc-docker-git/>`_
* `lxc-docker-nightly <https://aur.archlinux.org/packages/lxc-docker-nightly/>`_
2013-04-22 21:38:42 -04:00
The lxc-docker package will install the latest tagged version of docker.
The lxc-docker-git package will build from the current master branch.
The lxc-docker-nightly package will install the latest build.
2013-04-22 21:38:42 -04:00
Dependencies
------------
Docker depends on several packages which are specified as dependencies in
the AUR packages. The core dependencies are:
2013-04-22 21:38:42 -04:00
* bridge-utils
* device-mapper
2013-04-22 21:38:42 -04:00
* iproute2
* lxc
2013-04-22 21:38:42 -04:00
Installation
------------
The instructions here assume **yaourt** is installed. See
`Arch User Repository <https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages>`_
for information on building and installing packages from the AUR if you have not
done so before.
::
yaourt -S lxc-docker
2013-04-22 21:38:42 -04:00
2013-04-22 21:38:42 -04:00
Starting Docker
---------------
There is a systemd service unit created for docker. To start the docker service:
::
sudo systemctl start docker
To start on system boot:
::
sudo systemctl enable docker
Network Configuration
---------------------
IPv4 packet forwarding is disabled by default on Arch, so internet access from inside
the container may not work.
To enable the forwarding, run as root on the host system:
::
sysctl net.ipv4.ip_forward=1
2013-09-30 19:33:12 -04:00
And, to make it persistent across reboots, enable it on the host's **/etc/sysctl.d/docker.conf**:
::
net.ipv4.ip_forward=1