Overview
The networking system in Container Kit leverages Apple’s container CLI to provide native macOS networking with full IPv4 and IPv6 support, DNS integration, and network isolation.Network Concepts
Network Attachments
Containers can attach to one or more networks, each providing isolated network communication:Container Network Configuration
Each container has network settings in its configuration:Inspecting Network Configuration
View Container Networks
Get detailed network information for a container:Network Features
- IP Addressing
- Hostname
- MAC Addresses
Each network attachment provides both IPv4 and IPv6 addresses:
CIDR notation includes the subnet mask, allowing you to determine the network range.
Multi-Network Containers
Containers can attach to multiple networks simultaneously:Use Cases for Multi-Network
Frontend/Backend Separation
Web containers on public network, database containers on private backend network.
Service Mesh
Containers with management network and data network for separated control/data planes.
Network Isolation
Sensitive services on isolated networks with controlled access.
DNS Integration
Containers include DNS configuration:Network Platform Info
Container platform information includes network-relevant details:Network Troubleshooting
Verify Network Connectivity
Check IP Allocation
Network Security
Network Isolation
Containers on different networks are isolated:Best Practices
Network Design
- Use separate networks for different application tiers
- Implement frontend/backend network separation
- Limit container network attachments to necessary networks
- Use meaningful network names for documentation
IP Management
- Allow the runtime to assign IPs automatically
- Monitor IP address allocation in your subnets
- Plan subnet sizes for scaling
- Use IPv6 for future-proofing
Security
- Isolate sensitive containers on private networks
- Use network policies for access control
- Monitor network traffic between containers
- Regularly audit network configurations
Performance
- Minimize cross-network communication
- Use localhost for same-container services
- Consider network bandwidth for data-intensive apps
- Monitor network latency
Related Features
- DNS - DNS configuration and management
- Containers - Container lifecycle operations
- Registry - Network-based registry access