networking

Configure and manage Docker container networks across bridge, host, overlay, and macvlan drivers.

50|13|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/chaterm/terminal-skills --skill networking-chaterm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: networking
Source: https://github.com/chaterm/terminal-skills/tree/main/docker/networking
Command: npx skills add https://github.com/chaterm/terminal-skills --skill networking-chaterm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you understand and configure various Docker networking modes, enabling seamless communication between containers and with the host system.

Core Features & Use Cases

  • Network Drivers: Explains and demonstrates bridge, host, none, overlay, and macvlan networks.
  • Container Communication: Facilitates inter-container communication using IP addresses or container names.
  • Port Mapping: Covers exposing container ports to the host for external access.
  • DNS Configuration: Allows custom DNS settings and hostname resolution within containers.
  • Use Case: You need to set up a multi-container application where a web server needs to communicate with a backend API, and both need to be accessible from the host machine. This skill guides you through creating custom bridge networks and mapping ports.

Quick Start

Use the networking skill to create a custom bridge network named 'mynet' and run an nginx container on it.

Frequently Asked Questions about networking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up inter-container communication for a multi-container Docker application?

Docker inter-container communication is configured by creating custom bridge networks and attaching containers to them, enabling seamless DNS resolution and connectivity using container names instead of IP addresses.

What is the difference between Docker bridge and overlay network drivers?

Docker bridge networks enable inter-container communication on a single host, while overlay networks span multiple hosts via Docker Swarm, allowing distributed microservices to communicate securely across different machines.

How do I map container ports to the host for external access?

Port mapping exposes container ports to the host system by binding specific host ports to container ports, allowing external applications to access containerized services like web servers or backend APIs.

Can I use Docker macvlan networks to assign containers their own IP addresses?

Docker macvlan networks assign containers unique MAC addresses and distinct IP addresses on the physical network, making them appear as independent physical devices rather than relying on host port mapping.

Why does my Docker container fail to resolve hostnames in a custom network?

Hostname resolution in Docker requires containers to be connected to the same custom bridge network, as the default bridge network lacks automatic DNS resolution and needs manual IP addressing or custom DNS configuration.

What is the best way to configure DNS settings for containerized applications?

Docker DNS configuration allows custom DNS settings and hostname resolution within containers by utilizing user-defined networks, which provide built-in DNS servers that automatically resolve container names across the network.