Overlay Network without Swarm mode

Overlay network without swarm mode

The overlay network driver creates a distributed network among multiple Docker daemon hosts. This network sits on top of (overlays) the host-specific networks, allowing containers connected to it (including swarm service containers) to communicate securely. Docker transparently handles routing of each packet to and from the correct Docker daemon host and the correct destination container. see detail https://docs.docker.com/network/overlay/

This way of using overlay networks is not recommended for most Docker users. It can be used with standalone swarms and may be useful to system developers building solutions on top of Docker. It may be deprecated in the future. source: https://docs.docker.com/v17.09/engine/userguide/networking/#an-overlay-network-without-swarm-mode

Network Graph

On pod67-node0 run key-value store consul

On pod67-node1 and pod67-node2 disable docker service and run docker from CLI

On pod67-node1 create overlay network

View networks

on pod67-node1 create container alpine1 connect to my-overlay network

On pod67-node2 create container alpine2 connect to my-overlay network

On pod67-node2, view my-overlay network details

On pod67-node2 enter the alpine2 container and ping to the IP address alpine1 container

test ping to alpine1

This is my little notes based my experiment and my learning. Keep learning and keep calm.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store