Influxdb - Official Image | Docker Hub
hub.docker.com › _ › influxdbIf you don't mind using the new default path, you can switch the mount-point for the volume containing your data: # Migrate from this: $ docker run -p 8086:8086 \ -v $PWD:/root/.influxdbv2 \ quay.io/influxdb/influxdb:v2.0.3 # To this: docker run -p 8086:8086 \ -v $PWD:/var/lib/influxdb2 \ influxdb:2.0.