SlideShare a Scribd company logo
Shaker Gilbert
Solution Engineer, Docker
Data Center
Networking with
Containers
â—Ź Common Use Case
â—Ź Comparisons of Support
â—Ź Caveats
â—Ź MACVLAN Modes
â—Ź Transparent Networking Modes
● Demo’s
â—Ź Q&A
AGENDA
COMMON USE CASE
Overlay and Bridge Networking is Preferred, but...
VLAN_1
192.168.11.221 192.168.11.121
Traditional AppTraditional DB
COMMON USE CASE
Overlay and Bridge Networking is Preferred, but...
VLAN_1192.168.11.221 192.168.11.121
VLAN_1
host_net
default_gw
Traditional DB
Container APP
Comparisons of Support
Single and Bonded / Teamed Interfaces
Bridge Mode (parent interface)
Trunked Bridge Mode
L2 Trunked Bridge (IPVLAN)
Dual-Stacked MACVLAN Mode
MultiCast
IP Range Pools
IP Address Exclusions
Hyper-V Host Integrated
Customized DNS Suffix and Servers
IPv4 & IPv6
LINUX WINDOWS
Caveats
â—Ź Docker Services are not supported (host mode)
â—Ź Avoid IP address exhaustion and IP conflicts
â—Ź Service Discovery is not supported
â—Ź Network Encryption is not supported
â—Ź Cloud providers block macvlan networking
â—Ź Networking equipment; both physical and virtual, must
support promiscuous mode
Note: If multiple networks which use an external vSwitch for connectivity (e.g. Transparent, L2 Bridge, L2 Transparent) are created on the same container host, each of them requires its own network
adapter.
MACVLAN Modes
Linux Server
Supported Features
â—Ź Single and Bonded / Teamed Interfaces
â—Ź Bridge Mode (parent interface)
â—Ź Trunked Bridge Mode 802.1q
â—Ź IPVLAN Trunked Bridge 802.1q
â—Ź Dual-Stacked MACVLAN Mode
â—Ź IPv4 & IPv6
â—Ź MultiCast
â—Ź IP Address Exclusions
â—Ź IP Range Pools
Requirements
Host Native / Libnetwork
MACVLAN Linux Kernel > v3.9
Bridge Mode
Useful when containers need to access the same network resources that are shared by the host they
are on.
â—Ź Container has its own MAC address
â—Ź Container appears to be physically
connected on the host network
â—Ź DHCP and Static IP Supported
â—Ź All Containers on the bridge can
communicate over layer 2.
â—Ź Exclude Host IP from IPAM
â—Ź Use IP Ranges
docker network create --driver macvlan  --
subnet=172.16.1.0/24 --gateway=172.16.1.1 
--aux-address=172.16.1.52 --ip-range=172.16.1.0/24 
-o parent=eth0 hostnet
eth0 (default_net)
Trunked Bridge Mode (L3)
Useful when containers need access to resources on traditional VLAN networks; isolation domains and
security profiles.
â—Ź Container has its own MAC Address
â—Ź Appears on the same network (VLAN)
to other network devices
â—Ź Sub-Interfaces are automatically
created
â—Ź Sub-Interface assigns VLAN tagging
docker network create --driver macvlan 
--subnet=192.168.11.0/24 
--gateway=192.168.11.1 
-o parent=eth1.10 vlan10
eth0 (default_net)
.10
eth1
.20
Dual-Stack Bridge
Useful when multiple networks are required and/or both IPv4 and IPv6 addresses are needed on the
same VLAN.
â—Ź Container has its own MAC Address
â—Ź Containers appear to be physically
connected on the host port
â—Ź Manual IP assignment on network
â—Ź Enable IPv6 in /etc/docker/daemon.json
○ “ipv6”: true
docker network create --driver macvlan 
--subnet=192.168.10.0/24 --subnet=192.168.12.0/24 
--gateway=192.168.10.1 --gateway=192.168.12.1 
--subnet=2001:0db8:85a3:0000::/64 --gateway=2001:0db8:85a3:0000::10 
-o parent=eth1.46 -o macvlan_mode=bridge vlan46
eth0 (default_net)
.46
eth1
Transparent Modes
Windows Server
Supported Features
â—Ź Single and Teamed Interfaces
â—Ź Bridge Mode (parent interface)
â—Ź Trunked Bridge Mode 802.1q
â—Ź Layer 2 Bridge 802.1q
â—Ź Libnetwork communicates with HNS
â—Ź Hyper-V host integrated
â—Ź Windows host firewall rules apply to
container networks
Requirements
Host Native / Libnetwork
Windows Server 2016 & 2019
Transparent Bridge Mode
â—Ź Container has its own MAC address
â—Ź Container appears to be physically
connected on the host network
â—Ź IP assignment either static or DHCP
â—Ź Windows Firewall Rules Apply
docker network create -d transparent --
subnet="172.16.1.0/24” --gateway="172.16.1.1"
-o com.docker.network.windowsshim.interface="Ethernet0"
-o com.docker.network.windowsshim.networkname="hostnet"
hostnet
Useful when containers need to access the same network resources that are shared by the host they
are on.
(hostnet)
Ethernet0
Trunked Bridge Mode (L3)
â—Ź Container has its own MAC Address
â—Ź Appears on the same network (VLAN) to
other network devices
â—Ź IP assignment either static or DHCP
â—Ź VLAN ID must be specified per network
docker network create -d transparent --
subnet="192.168.11.0/24” --gateway="192.168.11.1"
-o com.docker.network.windowsshim.interface="Ethernet1"
-o com.docker.network.windowsshim.vlanid=”10”
-o com.docker.network.windowsshim.networkname="vlan10"
vlan10
Ethernet1
(hostnet)
Ethernet0
(vlan10)
Useful when containers need access to resources on traditional VLAN networks; isolation domains and
security profiles.
Layer 2 Bridge Mode
â—Ź Container shares the host MAC address
â—Ź Container appears to be physically
connected on the host network
â—Ź Static IP assignment required
docker network create -d l2bridge --subnet="172.16.1.0/24” --
gateway="172.16.1.1"
-o com.docker.network.windowsshim.interface="Ethernet0"
-o com.docker.network.windowsshim.dnssuffix=”docker.ee”
-o com.docker.network.windowsshim.dnsservers=”172.16.1.6”
-o com.docker.network.windowsshim.networkname="corpnet"
corpnet
(hostnet)
Ethernet0
Useful when the local switch restricts the total number of MAC addresses that it can manage.
Demo’s
What could go wrong?
Review
Linux Demo’s
host: mysqlx
IP: 192.168.11.201
app: mysql database
host: linux2.docker.ee
IP: 172.16.1.52
app: wordpress
network: macvlan.1
:
192.168.11.192/29
host: linux2.docker.ee
IP: 172.16.1.52
app: nginx (default)
network: macvlan.10
IP: 172.16.1.233
docker run -d -e 80 --rm --name wordpress --network=macvlan_vlan1 -e WORDPRESS_DB_HOST=192.168.11.201:3306 -e
WORDPRESS_DB_USER=4linux -e WORDPRESS_DB_PASSWORD=4linux -e WORDPRESS_DB_NAME=4linux -v
nfs_4linux:/var/www/html wordpress
docker run -d --rm -e 80 --network=macvlan_10 --ip="172.16.1.233" nginx
default network
Windows Demo’s
host network
IP: 172.16.1.0/24
host: windows2.docker.ee
IP: 172.16.1.62
app: IIS (default)
network: vlan10
IP: 172.16.1.234
docker run -d --rm --name iis --network=vlan10 -e 80 --ip="172.16.1.234
default network
Working Together, Yes we can!
eth0
.1
eth1
Eth0
Eth1
default_net
vlan1
â—Ź Limit Use Cases for MACVLAN & Transparent
Networking
â—Ź Used to Secure Layer 2 App Communication As
Needed
â—Ź Manage IP Segments and Subnets Carefully
â—Ź Host Services (docker run) Need Special
Handling
Considerations
beta.docker.com
Sign up for the Enterprise 3.0 Beta
Rate & Share
Rate this session in the DockerCon App
Tweet #DockerCon
Get Hands On
Play With Docker Play With Kubernetes
Free self-paced hands on labs to help
you level up your docker knowledge.
https://dockr.ly/pwd
Learn the basic concepts of
Kubernetes all within your browser
https://dockr.ly/pwk
Questions?

More Related Content

PDF
DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...
PDF
Production Ready Containers from IBM and Docker
PPTX
DockerCon EU 2015: What's New with Docker Trusted Registry
PPTX
Docker Networking : 0 to 60mph slides
PDF
Docker Online Meetup: Infrakit update and Q&A
PPTX
Docker Roadshow 2016
PPTX
Enabling Production Grade Containerized Applications through Policy Based Inf...
PDF
DCSF19 CMD and Conquer: Containerizing the Monolith
DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...
Production Ready Containers from IBM and Docker
DockerCon EU 2015: What's New with Docker Trusted Registry
Docker Networking : 0 to 60mph slides
Docker Online Meetup: Infrakit update and Q&A
Docker Roadshow 2016
Enabling Production Grade Containerized Applications through Policy Based Inf...
DCSF19 CMD and Conquer: Containerizing the Monolith

What's hot (20)

PDF
Docker Birthday #3 - Intro to Docker Slides
PDF
DCSF19 How Docker Simplifies Kubernetes for the Masses
PDF
Securing your Containers
PDF
DockerCon EU 2015: The Latest in Docker Engine
PDF
Docker Orchestration at Production Scale
PPTX
Docker Datacenter Overview and Production Setup Slides
PDF
DCEU 18: State of the Docker Engine
PDF
DCEU 18: Docker Containers in a Serverless World
PPTX
DockerCon EU 2015 Barcelona
PDF
Android Meets Docker
PDF
DCSF19 How To Build Your Containerization Strategy
PDF
DCEU 18: Docker Container Security
PDF
Docker on Docker
PPTX
Experiences with AWS immutable deploys and job processing
PPTX
Docker Online Meetup: Announcing Docker CE + EE
PDF
Taking Docker to Production: What You Need to Know and Decide
PDF
Online Meetup: What's new in docker 1.13.0
PPTX
Docker and Microsoft - Windows Server 2016 Technical Deep Dive
PDF
Node.js Rocks in Docker for Dev and Ops
PPTX
LlinuxKit security, Security Scanning and Notary
Docker Birthday #3 - Intro to Docker Slides
DCSF19 How Docker Simplifies Kubernetes for the Masses
Securing your Containers
DockerCon EU 2015: The Latest in Docker Engine
Docker Orchestration at Production Scale
Docker Datacenter Overview and Production Setup Slides
DCEU 18: State of the Docker Engine
DCEU 18: Docker Containers in a Serverless World
DockerCon EU 2015 Barcelona
Android Meets Docker
DCSF19 How To Build Your Containerization Strategy
DCEU 18: Docker Container Security
Docker on Docker
Experiences with AWS immutable deploys and job processing
Docker Online Meetup: Announcing Docker CE + EE
Taking Docker to Production: What You Need to Know and Decide
Online Meetup: What's new in docker 1.13.0
Docker and Microsoft - Windows Server 2016 Technical Deep Dive
Node.js Rocks in Docker for Dev and Ops
LlinuxKit security, Security Scanning and Notary
Ad

Similar to DCSF 19 Data Center Networking with Containers (20)

PDF
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
PDF
Docker 1.11 Meetup: Networking Showcase
PDF
Docker Meetup: Docker Networking 1.11 with Madhu Venugopal
PPTX
Docker networking Tutorial 101
PPTX
Docker Networking with New Ipvlan and Macvlan Drivers
PPTX
Docker Networking Overview
PPTX
Docker Networking - Current Status and goals of Experimental Networking
PPTX
Docker SDN (software-defined-networking) JUG
PPTX
Networking in Docker Containers
PPTX
Network Design patters with Docker
PDF
Docker Networking Deep Dive
PDF
Docker 1.12 networking deep dive
PPTX
DockerCon17 - Beyond the backslash
PPTX
Docker Networking - Common Issues and Troubleshooting Techniques
PPTX
Managing multicast stream on Docker.pptx
PDF
Practical Design Patterns in Docker Networking
PPTX
Docker networking tutorial 102
PDF
Docker Multihost Networking
PPTX
Deep Dive in Docker Overlay Networks
PDF
Deep Dive in Docker Overlay Networks - Laurent Bernaille - Architect, D2SI
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Docker 1.11 Meetup: Networking Showcase
Docker Meetup: Docker Networking 1.11 with Madhu Venugopal
Docker networking Tutorial 101
Docker Networking with New Ipvlan and Macvlan Drivers
Docker Networking Overview
Docker Networking - Current Status and goals of Experimental Networking
Docker SDN (software-defined-networking) JUG
Networking in Docker Containers
Network Design patters with Docker
Docker Networking Deep Dive
Docker 1.12 networking deep dive
DockerCon17 - Beyond the backslash
Docker Networking - Common Issues and Troubleshooting Techniques
Managing multicast stream on Docker.pptx
Practical Design Patterns in Docker Networking
Docker networking tutorial 102
Docker Multihost Networking
Deep Dive in Docker Overlay Networks
Deep Dive in Docker Overlay Networks - Laurent Bernaille - Architect, D2SI
Ad

More from Docker, Inc. (20)

PDF
Containerize Your Game Server for the Best Multiplayer Experience
PDF
How to Improve Your Image Builds Using Advance Docker Build
PDF
Build & Deploy Multi-Container Applications to AWS
PDF
Securing Your Containerized Applications with NGINX
PDF
How To Build and Run Node Apps with Docker and Compose
PDF
Hands-on Helm
PDF
Distributed Deep Learning with Docker at Salesforce
PDF
The First 10M Pulls: Building The Official Curl Image for Docker Hub
PDF
Monitoring in a Microservices World
PDF
COVID-19 in Italy: How Docker is Helping the Biggest Italian IT Company Conti...
PDF
Predicting Space Weather with Docker
PDF
Become a Docker Power User With Microsoft Visual Studio Code
PDF
How to Use Mirroring and Caching to Optimize your Container Registry
PDF
Monolithic to Microservices + Docker = SDLC on Steroids!
PDF
Kubernetes at Datadog Scale
PDF
Labels, Labels, Labels
PDF
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
PDF
Build & Deploy Multi-Container Applications to AWS
PDF
From Fortran on the Desktop to Kubernetes in the Cloud: A Windows Migration S...
PDF
Developing with Docker for the Arm Architecture
Containerize Your Game Server for the Best Multiplayer Experience
How to Improve Your Image Builds Using Advance Docker Build
Build & Deploy Multi-Container Applications to AWS
Securing Your Containerized Applications with NGINX
How To Build and Run Node Apps with Docker and Compose
Hands-on Helm
Distributed Deep Learning with Docker at Salesforce
The First 10M Pulls: Building The Official Curl Image for Docker Hub
Monitoring in a Microservices World
COVID-19 in Italy: How Docker is Helping the Biggest Italian IT Company Conti...
Predicting Space Weather with Docker
Become a Docker Power User With Microsoft Visual Studio Code
How to Use Mirroring and Caching to Optimize your Container Registry
Monolithic to Microservices + Docker = SDLC on Steroids!
Kubernetes at Datadog Scale
Labels, Labels, Labels
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
Build & Deploy Multi-Container Applications to AWS
From Fortran on the Desktop to Kubernetes in the Cloud: A Windows Migration S...
Developing with Docker for the Arm Architecture

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Cloud computing and distributed systems.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
cuic standard and advanced reporting.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Dropbox Q2 2025 Financial Results & Investor Presentation
Unlocking AI with Model Context Protocol (MCP)
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
sap open course for s4hana steps from ECC to s4
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

DCSF 19 Data Center Networking with Containers

  • 1. Shaker Gilbert Solution Engineer, Docker Data Center Networking with Containers
  • 2. â—Ź Common Use Case â—Ź Comparisons of Support â—Ź Caveats â—Ź MACVLAN Modes â—Ź Transparent Networking Modes â—Ź Demo’s â—Ź Q&A AGENDA
  • 3. COMMON USE CASE Overlay and Bridge Networking is Preferred, but... VLAN_1 192.168.11.221 192.168.11.121 Traditional AppTraditional DB
  • 4. COMMON USE CASE Overlay and Bridge Networking is Preferred, but... VLAN_1192.168.11.221 192.168.11.121 VLAN_1 host_net default_gw Traditional DB Container APP
  • 5. Comparisons of Support Single and Bonded / Teamed Interfaces Bridge Mode (parent interface) Trunked Bridge Mode L2 Trunked Bridge (IPVLAN) Dual-Stacked MACVLAN Mode MultiCast IP Range Pools IP Address Exclusions Hyper-V Host Integrated Customized DNS Suffix and Servers IPv4 & IPv6 LINUX WINDOWS
  • 6. Caveats â—Ź Docker Services are not supported (host mode) â—Ź Avoid IP address exhaustion and IP conflicts â—Ź Service Discovery is not supported â—Ź Network Encryption is not supported â—Ź Cloud providers block macvlan networking â—Ź Networking equipment; both physical and virtual, must support promiscuous mode Note: If multiple networks which use an external vSwitch for connectivity (e.g. Transparent, L2 Bridge, L2 Transparent) are created on the same container host, each of them requires its own network adapter.
  • 8. Linux Server Supported Features â—Ź Single and Bonded / Teamed Interfaces â—Ź Bridge Mode (parent interface) â—Ź Trunked Bridge Mode 802.1q â—Ź IPVLAN Trunked Bridge 802.1q â—Ź Dual-Stacked MACVLAN Mode â—Ź IPv4 & IPv6 â—Ź MultiCast â—Ź IP Address Exclusions â—Ź IP Range Pools Requirements Host Native / Libnetwork MACVLAN Linux Kernel > v3.9
  • 9. Bridge Mode Useful when containers need to access the same network resources that are shared by the host they are on. â—Ź Container has its own MAC address â—Ź Container appears to be physically connected on the host network â—Ź DHCP and Static IP Supported â—Ź All Containers on the bridge can communicate over layer 2. â—Ź Exclude Host IP from IPAM â—Ź Use IP Ranges docker network create --driver macvlan -- subnet=172.16.1.0/24 --gateway=172.16.1.1 --aux-address=172.16.1.52 --ip-range=172.16.1.0/24 -o parent=eth0 hostnet eth0 (default_net)
  • 10. Trunked Bridge Mode (L3) Useful when containers need access to resources on traditional VLAN networks; isolation domains and security profiles. â—Ź Container has its own MAC Address â—Ź Appears on the same network (VLAN) to other network devices â—Ź Sub-Interfaces are automatically created â—Ź Sub-Interface assigns VLAN tagging docker network create --driver macvlan --subnet=192.168.11.0/24 --gateway=192.168.11.1 -o parent=eth1.10 vlan10 eth0 (default_net) .10 eth1 .20
  • 11. Dual-Stack Bridge Useful when multiple networks are required and/or both IPv4 and IPv6 addresses are needed on the same VLAN. â—Ź Container has its own MAC Address â—Ź Containers appear to be physically connected on the host port â—Ź Manual IP assignment on network â—Ź Enable IPv6 in /etc/docker/daemon.json â—‹ “ipv6”: true docker network create --driver macvlan --subnet=192.168.10.0/24 --subnet=192.168.12.0/24 --gateway=192.168.10.1 --gateway=192.168.12.1 --subnet=2001:0db8:85a3:0000::/64 --gateway=2001:0db8:85a3:0000::10 -o parent=eth1.46 -o macvlan_mode=bridge vlan46 eth0 (default_net) .46 eth1
  • 13. Windows Server Supported Features â—Ź Single and Teamed Interfaces â—Ź Bridge Mode (parent interface) â—Ź Trunked Bridge Mode 802.1q â—Ź Layer 2 Bridge 802.1q â—Ź Libnetwork communicates with HNS â—Ź Hyper-V host integrated â—Ź Windows host firewall rules apply to container networks Requirements Host Native / Libnetwork Windows Server 2016 & 2019
  • 14. Transparent Bridge Mode â—Ź Container has its own MAC address â—Ź Container appears to be physically connected on the host network â—Ź IP assignment either static or DHCP â—Ź Windows Firewall Rules Apply docker network create -d transparent -- subnet="172.16.1.0/24” --gateway="172.16.1.1" -o com.docker.network.windowsshim.interface="Ethernet0" -o com.docker.network.windowsshim.networkname="hostnet" hostnet Useful when containers need to access the same network resources that are shared by the host they are on. (hostnet) Ethernet0
  • 15. Trunked Bridge Mode (L3) â—Ź Container has its own MAC Address â—Ź Appears on the same network (VLAN) to other network devices â—Ź IP assignment either static or DHCP â—Ź VLAN ID must be specified per network docker network create -d transparent -- subnet="192.168.11.0/24” --gateway="192.168.11.1" -o com.docker.network.windowsshim.interface="Ethernet1" -o com.docker.network.windowsshim.vlanid=”10” -o com.docker.network.windowsshim.networkname="vlan10" vlan10 Ethernet1 (hostnet) Ethernet0 (vlan10) Useful when containers need access to resources on traditional VLAN networks; isolation domains and security profiles.
  • 16. Layer 2 Bridge Mode â—Ź Container shares the host MAC address â—Ź Container appears to be physically connected on the host network â—Ź Static IP assignment required docker network create -d l2bridge --subnet="172.16.1.0/24” -- gateway="172.16.1.1" -o com.docker.network.windowsshim.interface="Ethernet0" -o com.docker.network.windowsshim.dnssuffix=”docker.ee” -o com.docker.network.windowsshim.dnsservers=”172.16.1.6” -o com.docker.network.windowsshim.networkname="corpnet" corpnet (hostnet) Ethernet0 Useful when the local switch restricts the total number of MAC addresses that it can manage.
  • 19. Linux Demo’s host: mysqlx IP: 192.168.11.201 app: mysql database host: linux2.docker.ee IP: 172.16.1.52 app: wordpress network: macvlan.1 : 192.168.11.192/29 host: linux2.docker.ee IP: 172.16.1.52 app: nginx (default) network: macvlan.10 IP: 172.16.1.233 docker run -d -e 80 --rm --name wordpress --network=macvlan_vlan1 -e WORDPRESS_DB_HOST=192.168.11.201:3306 -e WORDPRESS_DB_USER=4linux -e WORDPRESS_DB_PASSWORD=4linux -e WORDPRESS_DB_NAME=4linux -v nfs_4linux:/var/www/html wordpress docker run -d --rm -e 80 --network=macvlan_10 --ip="172.16.1.233" nginx default network
  • 20. Windows Demo’s host network IP: 172.16.1.0/24 host: windows2.docker.ee IP: 172.16.1.62 app: IIS (default) network: vlan10 IP: 172.16.1.234 docker run -d --rm --name iis --network=vlan10 -e 80 --ip="172.16.1.234 default network
  • 21. Working Together, Yes we can! eth0 .1 eth1 Eth0 Eth1 default_net vlan1
  • 22. â—Ź Limit Use Cases for MACVLAN & Transparent Networking â—Ź Used to Secure Layer 2 App Communication As Needed â—Ź Manage IP Segments and Subnets Carefully â—Ź Host Services (docker run) Need Special Handling Considerations
  • 23. beta.docker.com Sign up for the Enterprise 3.0 Beta
  • 24. Rate & Share Rate this session in the DockerCon App Tweet #DockerCon
  • 25. Get Hands On Play With Docker Play With Kubernetes Free self-paced hands on labs to help you level up your docker knowledge. https://dockr.ly/pwd Learn the basic concepts of Kubernetes all within your browser https://dockr.ly/pwk