title: Launching a InfluxDB container in docker with a default database name
body: <p>I'm running the following command to launch a <code>InfluxDB</code> container. This should create a new databse with the name <code>defaultdb</code>.</p>
  
  <pre><code>docker run -p 8086:8086 \
        -e INFLUXDB_DB=defaultdb -e INFLUXDB_ADMIN_ENABLED=true \
        -e INFLUXDB_ADMIN_USER=admin -e INFLUXDB_ADMIN_PASSWORD=adminpass \
        -e INFLUXDB_USER=user -e INFLUXDB_USER_PASSWORD=userpass \
        -v influxdb:/var/lib/influxdb \
        influxdb:latest 
  </code></pre>
  
  <p>But it doesnt create the default databse <code>defaultdb</code>. It creates the databse <code>db0</code> instead of <code>defaultdb</code>. What I'm doing wrong? </p>
  
  <p><a href="https://hub.docker.com/_/influxdb/" rel="nofollow noreferrer">https://hub.docker.com/_/influxdb/</a></p>
  
  <p>Thanks in advance.</p>