Description
How does one go about achieving https://docs.influxdata.com/influxdb/v2/admin/internals/tsi/rebuild-index/ when one is using the official InfluxDB Docker image (i.e. influxdb:latest
) ?
Step 1 involves stopping influxd itself, which as I understand it, would cause the Docker container to exit. Steps 2, 3, and 4 could be done on the host itself (i.e. outside of Docker), which is fine. But step 5 seems impossible given what step 1 did.
I've reviewed /entrypoint.sh and it almost seems like something would need to be added here to achieve this (but it's nearly 20KBytes of shell), but I'm not entirely sure. One would think docker exec -it container-name /bin/bash
and then doing influxd ...
commands would be sufficient, but that would require the container be running in the first place.
Thanks for any insights on how to achieve this.