Integrating Graylog GLEF with PHP and Perl

Thank You for your response Jan, i will submit similar issues to graylog community only.
when i tried to log data through below code:
curl -XPOST http://127.0.0.1:12201/gelf -p0 -d ‘{“short_message”:“Hello there”, “host”:“example.org”, “facility”:“test”, “_foo”:“bar”}’
i got below message
curl: (56) Recv failure: Connection reset by peer
although i created GELF TCP input listen to 127.0.0.1:12201
please note that the graylog is installed on docker machine (http://127.0.0.1:9000)
Any advice please