Overlay Network without Swarm mode

Network Graph
sudo docker run -d -p 8500:8500 -h consul --name consul progrium/consul -server -bootstrap
sudo systemctl stop dockersudo systemctl status dockersudo dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --cluster-advertise ens3:2375 --cluster-store consul://10.1.67.100:8500 &
sudo docker network create -d overlay — subnet=192.168.67.0/24 my-overlay
sudo docker network ls
sudo docker run -dit --name alpine1 --network my-overlay alpine ash
sudo docker run -dit --name alpine2 --network my-overlay alpine ash
sudo docker network inspect my-overlay
sudo docker attach alpine2
ping -c 3 192.168.67.2
ping -c 3 alpine1
test ping to alpine1

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

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
Hakim

Hakim

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

More from Medium

gRPC Introduction

Nginx ingress controller reporting error “Failed to update lock”

env: node\r: No such file or directory

How do you install GoLang on Linux?