Getting started with InfluxDB / Docker - 401 (Unauthorized)

For the record…
This is how I’ve setup InfluxDB from the command line…
Pull influxdb2 to the local filesystem and create a new docker container from it (Run from cmd.exe)

docker pull quay.io/influxdb/influxdb:v2.0.2
docker run --name influxdb -p 8086:8086 quay.io/influxdb/influxdb:v2.0.2

Then in the docker container CLI:
Setup the users, bucket and org names. (See ‘influx setup -h’)

influx setup --skip-verify --bucket sandbox --org MyOrgName --username administrator --password administrator --retention 0 --token UseThisToken_UseThisToken_UseThisToken_UseThisToken_UseThisToken_UseThisToken_UseThisT==

Then we need to add the token to /root/.influxdbv2/config file - otherwise we need to provide it for every request… (See ‘influx config create -h’)

influx config create --active --org MyOrgName --config-name administrator --host-url http://localhost:8086 --token UseThisToken_UseThisToken_UseThisToken_UseThisToken_UseThisToken_UseThisToken_UseThisT==

But still no luck, still getting 401 error…