How to create docker multihost network and access from LAN

How can I create docker network for multiple docker hosts and assign routable IP to the containers, so that, we can access the containers from LAN network without any NAT/PAT?

I have multiple VLANs in my environment for example VLAN 11 (192.168.11.0/24) for test, VLAN 12 (192.168.12.0/24) for prod, VLAN 13 (192.168.13.0/24) for LAN. I have configured VLANs on Cisco L3 switch and working fine. I have three CentOS7 boxes and I have installed docker on them. I have configured bridge interfaces on those CentOS7 boxes. Here are the configuration.

# cat ifcfg-eth0 NAME=eth0 IPV6INIT=no BOOTPROTO=static ONBOOT=yes HWADDR=8c:a9:01:9b:9b:5c NM_CONTROLLED=no NOZEROCONF=no  # cat ifcfg-eth1.11 TYPE=Ethernet BOOTPROTO=static NAME=eth1.11 DEVICE=eth1.11 ONBOOT=yes VLAN=yes IPADDR=192.168.11.134 NETMASK=255.255.252.0 GATEWAY=192.168.11.1  # cat ifcfg-eth1.13 TYPE=Ethernet BOOTPROTO=static NAME=eth1.13 DEVICE=eth1.13 ONBOOT=yes VLAN=yes IPADDR=192.168.13.134 NETMASK=255.255.252.0 GATEWAY=192.168.13.1 

Now, my question is how can I create docker network (may be overlay) to access the container from my LAN without additional NAT ?

Replay

Category: linux networking Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 2.286 (s). 13 q(s)