Browse Source

Merge pull request #1287 from pehala/docker_network_documentation

doc: Add section about creating new docker network
Luther Monson 4 years ago
parent
commit
3a7dc5b958
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Documentation/running.md

+ 6 - 0
Documentation/running.md

@@ -98,6 +98,12 @@ docker daemon --bip=${FLANNEL_SUBNET} --mtu=${FLANNEL_MTU} &
 
 Systemd users can use `EnvironmentFile` directive in the `.service` file to pull in `/run/flannel/subnet.env`
 
+If you want to leave default docker0 network as it is and instead create a new network that will be using flannel you do so like this:
+```bash
+source /run/flannel/subnet.env
+docker network create --attachable=true --subnet=${FLANNEL_SUBNET} -o "com.docker.network.driver.mtu"=${FLANNEL_MTU} flannel
+```
+
 ## CoreOS integration
 
 CoreOS ships with flannel integrated into the distribution.