After upgrading to Docker engine 1.10 (from 1.08), I noticed that my reverse proxy configuration no longer works.
All my applications (including Nginx for reverse proxies) are containerized and linked via container names. Here is an example for some of the virtual hosts in Nginx:
server { server_name jobs; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://jenkins:8080; } }
Now I can ping a Jenkins container from a Nginx container only through IP, but not through the container name. Since IP addresses are constantly changing due to updates, redistributions, etc., is there a better network way to avoid defining IP addresses in the reverse proxy configuration?
The legacy of --link not an option, as there are many containers.
docker
Edgaras
source share