influxdata / influxdata-docker

Official docker images for the influxdata stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InfluxDB 2.2: using api with curl fails in init-script

ph1l1ppk opened this issue · comments

Hello,
I use influxDB 2.2 in a docker-compose stack and I have an unexpected behaviour when doing initialisation with an init-script. Doing initialisation with InfluxCLI works all-right in an init-script. When I try to do the same initialisation by api and curl in that init-script the curl calls fail with the message:
curl: (7) Failed to connect to localhost port 8086: Connection refused
When I run the init-script later manually or in another container, the curl call to the api work all right. In InfluxDB 1.x, using api and curl in init-skripts worked all right.
Am I doing something wrong or is this the expected behaviour in InfluxDB 2.x?

best regards, Philipp