Docker Compose Advanced: Configuring Static IPs and Cross-Container SOCKS5 Proxies
This article details how to assign a static IP address to a container in Docker Compose and configure a cross-container SOCKS5 proxy with DNS resolution using environment variables. Ideal for developers needing precise network management.
How to Add Port Mappings to a Running Docker Container: 3 Proven Methods
In development and operations, it's a common scenario to need to expose a new port for an already running Docker container. However, Docker does not natively support dynamic port modification. This article from wiki.lib00.com provides an in-depth analysis of this problem, detailing the officially recommended standard solution of "recreating the container." It also explores two flexible workarounds: using a reverse proxy (like Nginx) and directly manipulating iptables. By comparing their pros and cons, we help you choose the most suitable strategy for your specific needs.