瀏覽代碼

Add fedora 22 install docs warning about systemd-network

Following @cles commit #6bd15a68c for Arch

Signed-off-by: yyekhlef <yyekhlef@gmail.com>
Youcef YEKHLEF 10 年之前
父節點
當前提交
f224a9f3d6
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      docs/installation/fedora.md

+ 16 - 0
docs/installation/fedora.md

@@ -206,6 +206,22 @@ If you need to add an HTTP Proxy, set a different directory or partition for the
 Docker runtime files, or make other customizations, read our Systemd article to
 Docker runtime files, or make other customizations, read our Systemd article to
 learn how to [customize your Systemd Docker daemon options](/articles/systemd/).
 learn how to [customize your Systemd Docker daemon options](/articles/systemd/).
 
 
+## Running Docker with a manually-defined network
+
+If you manually configure your network using `systemd-network` with fedora version 22, containers you start with Docker may be unable to access your network.
+Beginning with version 220, the forwarding setting for a given network (`net.ipv4.conf.<interface>.forwarding`) defaults to *off*. This setting prevents IP forwarding. It also conflicts with Docker which enables the `net.ipv4.conf.all.forwarding` setting within a container.
+
+To work around this, edit the `<interface>.network` file in
+`/usr/lib/systemd/network/` on your Docker host  (ex: `/usr/lib/systemd/network/80-container-host0.network`) add the following block:
+
+```
+[Network]
+...
+IPForward=kernel
+...
+```
+
+This configuration allows IP forwarding from the container as expected.
 
 
 ## Uninstall
 ## Uninstall