CLI on Docker influxdb conatiner does not find any orgs

Im a first time user and I followed the Blog post Running InfluxDB 2.0 and Telegraf Using Docker | InfluxData I managed to login to the webui for the influx container and create a org/bucket/token and use telegraf to input snmp data from my switch. I also created a dashboard showing data from the snmp interface table from the device I’m monitoring. However. When I access the shell on the container and use influx org list i get no orgs despite the webui showing i have two orgs my-org and myorg.
My desire is to create a DBRP mapping so I can add influxdb as a source in grafana using influxql

What am I doing wrong? its got to be something simple.