docker-host is a Docker sidecar container that forwards traffic from containers to the local Docker host or another configured host. It is useful in environments where containers need to reach services running on the host machine, especially when direct host networking is unavailable or inconsistent across platforms. The project creates a predictable network alias, commonly used as docker-host, so other containers can connect through a stable name. It supports TCP and UDP traffic forwarding examples and can be used inside custom Docker networks or Docker Compose setups. The container requires network-related capabilities such as NET_ADMIN and NET_RAW so it can handle forwarding behavior. Its main value is simplifying host access from containers without forcing each application container to include custom routing logic.
Features
- Docker sidecar for host traffic forwarding
- Access to local Docker host from containers
- Custom Docker network support
- TCP and UDP forwarding examples
- Docker Compose-compatible service pattern
- Small utility container with network capability requirements