Influxdb - Official Image | Docker Hub
https://hub.docker.com/_/influxdbA data directory mounted at /var/lib/influxdb Finally, the DOCKER_INFLUXDB_INIT_MODE environment variable must be set to upgrade. Automated upgrade will generate both data and config files, by default under /var/lib/influxdb2 and /etc/influxdb2. It's recommended to mount volumes at both paths to avoid losing data.