From f05f5b2a203dba64ff98d67a8fbd1445c72b50dc Mon Sep 17 00:00:00 2001 From: Renato Riccieri Santos Zannon Date: Thu, 30 May 2013 01:56:08 -0300 Subject: [PATCH] Add IP forwarding config to archlinux guide I had this small issue when following this guide on my Arch box, and I don't think it is specific to any configuration I have. Upstream-commit: b2084a9c599d91fa1460116ef0c8d509d3353103 Component: engine --- .../docs/sources/installation/archlinux.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/engine/docs/sources/installation/archlinux.rst b/components/engine/docs/sources/installation/archlinux.rst index 9e3766eb26..722c150194 100644 --- a/components/engine/docs/sources/installation/archlinux.rst +++ b/components/engine/docs/sources/installation/archlinux.rst @@ -67,3 +67,21 @@ 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 + +And, to make it persistent across reboots, enable it on the host's **/etc/sysctl.conf**: + +:: + + net.ipv4.ip_forward=1