I've created a container and executed it for influxdb. Now as the previous versions we could access the databases by going inside the influx shell with influx command. But when I type the influx command I get list of help command. Any one here has an idea how to create database in influxdb 2.x inside docker container.
Asked
Active
Viewed 3,223 times
3
1 Answers
5
influxdb 2.0 is very different from 1.x. databases
don't exist anymore, they are named buckets
now... There is a whole page explaining the different ways in which you can create a bucket in influxdb 2.0. Look specially at sections IV and V.
In short there are two alternatives:
- using the cli:
influx bucket create -n <bucketname> --org-id <org-id> -r 10h -t <secret-token>
. Read further on the page on how to get your org id and token. - use the UI (located at http://localhost:9999 by default)

Chris Maes
- 35,025
- 12
- 111
- 136