Docker Community Forums

Share and learn in the Docker community.

Unable to send data via http while running within a docker container

Hello all.

I have a python script that collects data and is able to send the data via http request to my influxdb. It works fine, UNTIL I try to run the same script within the container. I get a 204 status code, but when I try to view the data in real time (every 5 seconds via Grafana) no data shows up… but if I go back to running the python script outside of the docker container, it runs fine and I can see the data. Has anyone else had this problem? Thanks to all of those who reply in advance.