github.com/vincentwoo/docker@v0.7.3-0.20160116130405-82401a4b13c0/docs/installation/archlinux.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "Installation on Arch Linux"
     4  description = "Installation instructions for Docker on ArchLinux."
     5  keywords = ["arch linux, docker, documentation,  installation"]
     6  [menu.main]
     7  parent = "smn_linux"
     8  +++
     9  <![end-metadata]-->
    10  
    11  # Arch Linux
    12  
    13  Installing on Arch Linux can be handled via the package in community:
    14  
    15   - [docker](https://www.archlinux.org/packages/community/x86_64/docker/)
    16  
    17  or the following AUR package:
    18  
    19   - [docker-git](https://aur.archlinux.org/packages/docker-git/)
    20  
    21  The docker package will install the latest tagged version of docker. The
    22  docker-git package will build from the current master branch.
    23  
    24  ## Dependencies
    25  
    26  Docker depends on several packages which are specified as dependencies
    27  in the packages. The core dependencies are:
    28  
    29   - bridge-utils
    30   - device-mapper
    31   - iproute2
    32   - sqlite
    33  
    34  ## Installation
    35  
    36  For the normal package a simple
    37  
    38      $ sudo pacman -S docker
    39  
    40  is all that is needed.
    41  
    42  For the AUR package execute:
    43  
    44      $ yaourt -S docker-git
    45  
    46  The instructions here assume **yaourt** is installed. See [Arch User
    47  Repository](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages)
    48  for information on building and installing packages from the AUR if you
    49  have not done so before.
    50  
    51  ## Starting Docker
    52  
    53  There is a systemd service unit created for docker. To start the docker
    54  service:
    55  
    56      $ sudo systemctl start docker
    57  
    58  To start on system boot:
    59  
    60      $ sudo systemctl enable docker
    61  
    62  ## Custom daemon options
    63  
    64  If you need to add an HTTP Proxy, set a different directory or partition for the
    65  Docker runtime files, or make other customizations, read our systemd article to
    66  learn how to [customize your systemd Docker daemon options](../articles/systemd.md).
    67  
    68  ## Running Docker with a manually-defined network
    69  
    70  If you manually configure your network using `systemd-network` version 220 or
    71  higher, containers you start with Docker may be unable to access your network.
    72  Beginning with version 220, the forwarding setting for a given network
    73  (`net.ipv4.conf.<interface>.forwarding`) defaults to *off*. This setting
    74  prevents IP forwarding. It also conflicts with Docker which enables the
    75  `net.ipv4.conf.all.forwarding` setting within a container.
    76  
    77  To work around this, edit the `<interface>.network` file in
    78  `/etc/systemd/network/` on your Docker host add the following block:
    79  
    80  ```
    81  [Network]
    82  ...
    83  IPForward=kernel
    84  ...
    85  ```
    86  
    87  This configuration allows IP forwarding from the container as expected.
    88  ## Uninstallation
    89  
    90  To uninstall the Docker package:
    91  
    92      $ sudo pacman -R docker
    93  
    94  To uninstall the Docker package and dependencies that are no longer needed:
    95  
    96      $ sudo pacman -Rns docker
    97  
    98  The above commands will not remove images, containers, volumes, or user created
    99  configuration files on your host. If you wish to delete all images, containers,
   100  and volumes run the following command:
   101  
   102      $ rm -rf /var/lib/docker
   103  
   104  You must delete the user created configuration files manually.