how to get logs in a haproxy:1.5-alpine Docker container

Solution 1:

You need to pass /dev/log from the host into the container and then read your logs from the host side! The author of haproxy is against logging to stdout (for performance reasons), so there is not much you can do except what I described (or running syslog daemon in another container in the pod)