github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/docs/installation/linux/archlinux.md (about) 1 <!--[metadata]> 2 +++ 3 aliases = [ "/engine/installation/archlinux/"] 4 title = "Installation on Arch Linux" 5 description = "Installation instructions for Docker on ArchLinux." 6 keywords = ["arch linux, docker, documentation, installation"] 7 [menu.main] 8 parent = "engine_linux" 9 +++ 10 <![end-metadata]--> 11 12 # Arch Linux 13 14 Installing on Arch Linux can be handled via the package in community: 15 16 - [docker](https://www.archlinux.org/packages/community/x86_64/docker/) 17 18 or the following AUR package: 19 20 - [docker-git](https://aur.archlinux.org/packages/docker-git/) 21 22 The docker package will install the latest tagged version of docker. The 23 docker-git package will build from the current master branch. 24 25 ## Dependencies 26 27 Docker depends on several packages which are specified as dependencies 28 in the packages. The core dependencies are: 29 30 - bridge-utils 31 - device-mapper 32 - iproute2 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](../../admin/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.