github.com/tompao/docker@v1.9.1/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, virtualization, 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   - lxc
    33   - sqlite
    34  
    35  ## Installation
    36  
    37  For the normal package a simple
    38  
    39      $ sudo pacman -S docker
    40  
    41  is all that is needed.
    42  
    43  For the AUR package execute:
    44  
    45      $ yaourt -S docker-git
    46  
    47  The instructions here assume **yaourt** is installed. See [Arch User
    48  Repository](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages)
    49  for information on building and installing packages from the AUR if you
    50  have not done so before.
    51  
    52  ## Starting Docker
    53  
    54  There is a systemd service unit created for docker. To start the docker
    55  service:
    56  
    57      $ sudo systemctl start docker
    58  
    59  To start on system boot:
    60  
    61      $ sudo systemctl enable docker
    62  
    63  ## Custom daemon options
    64  
    65  If you need to add an HTTP Proxy, set a different directory or partition for the
    66  Docker runtime files, or make other customizations, read our systemd article to
    67  learn how to [customize your systemd Docker daemon options](../articles/systemd.md).
    68  
    69  ## Running Docker with a manually-defined network
    70  
    71  If you manually configure your network using `systemd-network` version 220 or
    72  higher, containers you start with Docker may be unable to access your network.
    73  Beginning with version 220, the forwarding setting for a given network
    74  (`net.ipv4.conf.<interface>.forwarding`) defaults to *off*. This setting
    75  prevents IP forwarding. It also conflicts with Docker which enables the
    76  `net.ipv4.conf.all.forwarding` setting within a container.
    77  
    78  To work around this, edit the `<interface>.network` file in
    79  `/etc/systemd/network/` on your Docker host add the following block:
    80  
    81  ```
    82  [Network]
    83  ...
    84  IPForward=kernel
    85  ...
    86  ```
    87  
    88  This configuration allows IP forwarding from the container as expected.
    89  ## Uninstallation
    90  
    91  To uninstall the Docker package:
    92  
    93      $ sudo pacman -R docker
    94  
    95  To uninstall the Docker package and dependencies that are no longer needed:
    96  
    97      $ sudo pacman -Rns docker
    98  
    99  The above commands will not remove images, containers, volumes, or user created
   100  configuration files on your host. If you wish to delete all images, containers,
   101  and volumes run the following command:
   102  
   103      $ rm -rf /var/lib/docker
   104  
   105  You must delete the user created configuration files manually.