Lab #2: Create an Overlay network

In this lab we are going to create a user defined Overlay network.


Tested Infrastructure

Platform Number of Instance Reading Time
Play with Docker 2 5 min


Create an overlay network called myoverlay0

$ docker network create --driver=overlay --subnet= --gateway= myoverlay0

Listout the networks in the host

$ docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
7bbea9e2f1c4        bridge              bridge              local
99e0866a81c5        docker_gwbridge     bridge              local
180292624b34        host                host                local
pp47xrb8x4da        ingress             overlay             swarm
1o0u8kqharpe        myoverlay0          overlay             swarm
e7e3f13ebea6        none                null                local

View the details of network myoverlay0

$ docker network inspect myoverlay0

Create an encrypted overlay network

By default application data is not encrypted, to encrypt application data as well, we need to add –opt encrypted while creating Overlaynetwork.

$ docker network create -d overlay --opt encrypted encrypted_overlay


Savio Mathew