Having followed this great guide on lxd and haproxy, I’ve only managed to get haproxy working if I use the IP of the container and not the container name…
For example, this line in a backend section works fine
server apache_00 10.174.73.237:80 check
But using the container name or the container’s hostname doesn’t work. The container name returns error 503 from haproxy and the container hostname gives a page not redirecting error.
So I guess I’m curious as to how @simos managed to use the container’s names in the tutorial?