Skip to main content

Command Palette

Search for a command to run...

🐳 Understanding Docker Networking, Bridge vs Host vs Overlay & Secure containers

Published
β€’3 min readβ€’View as Markdown
🐳 Understanding Docker Networking, Bridge vs Host vs Overlay & Secure containers
P

πŸ‘‹ Hello! I'm passionate about DevOps and have over 1+ years of experience in the field. I'm proficient in a variety of cutting-edge technologies and always motivated to expand my knowledge and skills. Let's connect and grow together!

SKILLS:

πŸ”Ή Languages & Runtimes: Python, Shell Scripting, HCL, YAML πŸ”Ή Cloud Technologies: AWS, Microsoft Azure, GCP πŸ”Ή Infrastructure Tools: Docker, Terraform, AWS CloudFormation πŸ”Ή Other Tools: Linux, Git and GitHub Actions, Jenkins, Jira, GitLab (beginner), Docker, AWS DevOps πŸ”Ή Web Development: HTML, CSS, Bootstrap, Python, SQL

Job & Responsibilities:

πŸš€ Improved development efficiency by implementing CI/CD pipelines, resulting in a 30% reduction in deployment time on the test server. πŸ”’ Strengthened deployment and testing reliability by utilizing Docker containers and optimizing Dockerfile, reducing development issues on the test server by 20%. βš™οΈ Automated S3 bucket log creation with Shell scripting, eliminating 100% of manual search and saving 2 hours per week. πŸ“… Scheduled EC2 instance start/stop using Lambda functions and Event Bridge, leading to a 25% decrease in infrastructure costs. πŸ”§ Utilized AWS, Linux, Python, Docker, Shell scripting, Terraform, Jenkins Pipelines, and automation to streamline workflows and improve overall system performance.

I'm very detail-oriented and possess strong written and verbal communication skills. As a high performer with a possibility mindset, I strive to solve problems using efficient approaches.

Let's Connect & Grow:

If you find my profile suitable for the role you are searching for, please feel free to reach out to me at sumanprasad9766@gmail.com.

πŸ“ Introduction:

If you're interested in working with containers and container orchestration tools like Kubernetes and Docker Swarm, it's important to understand networking in Docker. Docker networking is a critical component that allows containers to communicate with each other and with other resources on a network.

In this blog post, we'll explore the basics of Docker networking and cover some key concepts that you'll need to know to work effectively with containers and container orchestration tools.

πŸ”Ή Why do you need networking on Docker? πŸ€”

Docker networking is essential for allowing containers to communicate with each other and with other resources on a network. For example, if you have multiple containers running on the same host, they need to be able to communicate with each other to function properly.

πŸ”Ή How does Docker Networking Work? πŸ› οΈ

Docker networking works by creating a virtual network that allows containers to communicate with each other and with other resources on a network. Each container is assigned an IP address within the virtual network, and Docker provides a range of networking options to allow containers to communicate with each other and with other resources on the network.

πŸ”Ή What are the different types of Networking in Docker? 🌐

Docker provides several different types of networking options, including bridge networks, host networks, overlay networks, and macvlan networks.

⚜ Example of creating a bridge network:

docker network create --driver bridge my-network

πŸ”Ή Which Networking is default and Out of the Box? πŸ”

Bridge networks are the default networking option in Docker and are included out of the box. They are the most commonly used networking option in Docker and provide a private network that is isolated from the host system and other networks.

πŸ”Ή Play with Docker containers and inspect their Networks πŸ‹

To get a better understanding of Docker networking, it's useful to experiment with containers and inspect their networks. Docker provides a range of commands that allow you to create and manage containers, as well as inspect their networks.

⚜ Example of listing available networks in Docker:

docker network ls

πŸ”Ή Create a custom bridge network to secure it from other containers πŸ”’

If you need to create a custom network in Docker, you can use the "docker network create" command to create a new network. This can be useful if you need to secure a network and prevent other containers from accessing it.

⚜ Example of creating a custom bridge network:

docker network create --driver bridge my-secure-network

πŸ“ Conclusion:

In conclusion, understanding Docker networking is essential if you want to work effectively with containers and container orchestration tools like Kubernetes and Docker Swarm. By exploring the basics of Docker networking and experimenting with containers, you can gain a better understanding of how networking works in Docker and how to use it effectively in your container deployments.

πŸ“ Resources:

I invite you to check my portfolio in case you are interested in contacting me for a project!. Prasad Suman Mohan

πŸ”΅ Don't forget to follow me also on LinkedIn: https://www.linkedin.com/in/prasad-suman-mohan

More from this blog

D

DeployToCloud

405 posts

πŸ‘‹ Welcome to my Hashnode blog! I'm a DevOps Engineer with 2+ years of experience. Join ~5k followers and explore 320+ blogs on Python, AWS, Docker, Jenkins, Linux, and more. Let's connect & grow πŸš€