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.

  • advantages VM's have over lightweight containers (docker) [closed]
  • Building A Docker RPM on Fedora
  • How to configure rabbitmq.config inside Docker containers?
  • Can I create wheels for python packages on macOS usable for a ubuntu docker image?
  • Is it possible to turn Docker image into Windows executable for easy distribution?
  • Docker - Execute a bash when running a container
  • How to test HTML pages served by docker with Windows vitrualbox guest?
  • How to change the docker terminal launch script?
  • Docker build “no such file or directory” but work with docker-compose
  • Docker CPU and memory too low
  • Docker swarm mode load balancing not working as described
  • How do I debug a kube-proxy that's only proxying portal IP traffic to localhost and not other instances?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.