KUBERNETES | Docker Networking | DEMO: Create, Deploy and Inspect default Docker Networks



Certified Kubernetes Administrator
*************************************

Description:
*************
In this video, you are going to learn the basics of Docker Networking, Create, Deploy and Inspect default Docker Networks

1. Why Docker Networking ?
2. Bridge, Host & None Networks
3. Overlay & Macvlan Networks
4. DEMO: Create and Inspect default Docker Networks

For suggestions/feedback/doubts contact
email: kvk@vsparkz.com

Happy Learning !!!

===========================================================================================
USEFUL LINKS:
#############

Docker Networking Overview :
****************************

Bridge Network:
***************

Host Network:
*************

None Network:
*************

Overlay Network:
****************

Macvlan Network:
****************

==========================================================================================
#cka #kubernetes #k8s #containers

DEMO Steps:
**************

Step 1: Connect to Docker Host
—————————————————

$ service docker status

Step 2: Inspect the Default networks
———————————————————–

$ docker network ls
$ docker inspect bridge
$ docker inspect host
$ docker inspect none

Step 3: Deploy container’s in the default BRIDGE Network & Test
——————————————————————————————————-

$ docker login
$ docker run -d -p 8080:80 –name happy-bridge vsparkz/webserver:latest
$ docker inspect happy-bridge

$ docker run -it centos bash
$ docker inspect –container name–

Step 4: Create a Custom Isolated BRIDGE Network
———————————————————————————

$ docker network create –driver=bridge –subnet=192.168.0.0/16 custom-bridge-network

Step 5: Deploy container’s in the Custom BRIDGE Network & Test
———————————————————————————————————

$ docker run -d –network=custom-bridge-network -p 8081:80 –name happy-custom vsparkz/webserver:latest

$ docker inspect happy-custom

Step 6: Deploy container’s in the HOST Network & Inspect
——————————————————————————————–

$ docker run -d –network=host –name happy-host vsparkz/webserver:latest
$ docker inspect happy-host

Step 7: Deploy container’s in the NONE Network & Inspect
———————————————————————————————-

$ docker run -d –network=none –name happy-none vsparkz/webserver:latest

$ docker inspect happy-none

source

Avatar of VSPARKZ

By VSPARKZ

One thought on “KUBERNETES | Docker Networking | DEMO: Create, Deploy and Inspect default Docker Networks”

Leave a Reply

Your email address will not be published.

Captcha loading...