Graylog docker container only binds when it listens to 0.0.0.0 and not 127.0.0.1?

My docker graylog container has an input that listens to 127.0.0.1:1522. I have port forwarded my machines 127.0.0.1:1522 -> 1522/tcp of the docker host container. But I am not able to do curl 127.0.0.1:1522. Any idea whats happening? Moreover if I change the address to 0.0.0.0 for the listening of the input, it works : curl 0.0.0.0:1522. Please help.

  • ImagePullBackOff local repository with Minikube
  • Docker on Google Compute f1-micro instance
  • How can I set up a mysql slave in Docker?
  • How can I specify the user inside my docker container?
  • Why is Docker Tomcat failing to start?
  • Docker ELK stack with docker-py
  • Inject code/files directly into a container in Kubernetes on Google Cloud Engine
  • How to use Postgresql container with existing data?
  • Can docker services only be attached to docker overlay networks?
  • <CoreOS, cloud-config> How to 'Wait' until Docker Private Registry is ready?
  • What is a reliable way to change PostgreSQL configuration, especially move its data directory in a script?
  • docker-compose unsupported config for services
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.