Upgrade v2.0.3 to 2.0.7 ends up at Onboarding dialog

I tried to update my docker image from 2.0.3 to 2.0.7 and end up at the onboarding page.

################################################################################
# InfluxDB v2
################################################################################
# docker
################################################################################
version: "3.7"
services:
  influxdb:
    image: quay.io/influxdb/influxdb:v2.0.3
    #image: influxdb:2.0.7
    environment:
      - TZ=Europe/Zurich
    command:
      - "--log-level=debug"
      - "--http-bind-address=:8086"
    ports:
      - "8086:8086"
    # Network mode host allows docker to receive UDP responses from host network (i.e. smart home)
    network_mode: "host"
    volumes:
      - ./data:/root/
    labels:
      # Because I prefer to do this one in yml file
      - "traefik.enable=false"

With the influxdb:2.0.7 it starts and the web page invites me to restart the onboarding which makes me very nervous about losing my data. When I swapped back to Quay and restarted and could logon normally, but I would like to understand how to update. Not sure there is much in the 2.0.7 log:

steve@nucnuc2:~/iot/influxdb$ docker-compose logs
Attaching to influxdb_influxdb_1
influxdb_1  | 2021-08-09T12:24:51.552884418Z	warn	boltdb not found at configured path, but DOCKER_INFLUXDB_INIT_MODE not specified, skipping setup wrapper	{"system": "docker", "bolt_path": ""}
influxdb_1  | ts=2021-08-09T12:25:14.648762Z lvl=info msg="Welcome to InfluxDB" log_id=0Vripjb0000 version=2.0.7 commit=2a45f0c037 build_date=2021-06-04T19:17:40Z
influxdb_1  | ts=2021-08-09T12:25:14.672045Z lvl=info msg="Resources opened" log_id=0Vripjb0000 service=bolt path=/var/lib/influxdb2/influxd.bolt
influxdb_1  | ts=2021-08-09T12:25:14.675341Z lvl=info msg="Bringing up metadata migrations" log_id=0Vripjb0000 service=migrations migration_count=15
influxdb_1  | ts=2021-08-09T12:25:14.675373Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="initial migration" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.830646Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="initial migration" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.830723Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"userresourcemappingsbyuserindexv1\"" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.839681Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"userresourcemappingsbyuserindexv1\"" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.839720Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="migrate task owner id" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.844785Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="migrate task owner id" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.844822Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="create DBRP buckets" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.856452Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="create DBRP buckets" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.856479Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="create pkger stacks buckets" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.867672Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="create pkger stacks buckets" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.867724Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="delete sessionsv1 bucket" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.899099Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="delete sessionsv1 bucket" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.899160Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="Create TSM metadata buckets" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.909491Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="Create TSM metadata buckets" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.909527Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="Create Legacy authorization buckets" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.924234Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="Create Legacy authorization buckets" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.924266Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="Create legacy auth password bucket" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.935754Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="Create legacy auth password bucket" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.935789Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"telegrafbyorgindexv1\"" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.949029Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"telegrafbyorgindexv1\"" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.949068Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="populate dashboards owner id" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.957837Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="populate dashboards owner id" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.957892Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"dbrpbyorgv1\"" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.971279Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"dbrpbyorgv1\"" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.971319Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="repair DBRP owner and bucket IDs" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.980607Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="repair DBRP owner and bucket IDs" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.980653Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"dbrpbyorgv1\"" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:14.993634Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="add index \"dbrpbyorgv1\"" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:14.993668Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="record shard group durations in bucket metadata" target_state=up migration_event=started
influxdb_1  | ts=2021-08-09T12:25:15.002008Z lvl=debug msg="Executing metadata migration" log_id=0Vripjb0000 service=migrations migration_name="record shard group durations in bucket metadata" target_state=up migration_event=completed
influxdb_1  | ts=2021-08-09T12:25:15.048956Z lvl=debug msg="buckets find" log_id=0Vripjb0000 store=new took=0.099ms
influxdb_1  | ts=2021-08-09T12:25:15.049211Z lvl=info msg="Using data dir" log_id=0Vripjb0000 service=storage-engine service=store path=/var/lib/influxdb2/engine/data
influxdb_1  | ts=2021-08-09T12:25:15.049472Z lvl=info msg="Compaction settings" log_id=0Vripjb0000 service=storage-engine service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
influxdb_1  | ts=2021-08-09T12:25:15.049508Z lvl=info msg="Open store (start)" log_id=0Vripjb0000 service=storage-engine service=store op_name=tsdb_open op_event=start
influxdb_1  | ts=2021-08-09T12:25:15.049652Z lvl=info msg="Open store (end)" log_id=0Vripjb0000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=0.145ms
influxdb_1  | ts=2021-08-09T12:25:15.049724Z lvl=info msg="Starting retention policy enforcement service" log_id=0Vripjb0000 service=retention check_interval=30m
influxdb_1  | ts=2021-08-09T12:25:15.049863Z lvl=info msg="Starting precreation service" log_id=0Vripjb0000 service=shard-precreation check_interval=10m advance_period=30m
influxdb_1  | ts=2021-08-09T12:25:15.050014Z lvl=info msg="Starting query controller" log_id=0Vripjb0000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
influxdb_1  | ts=2021-08-09T12:25:15.054679Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0Vripjb0000 max_select_point=0 max_select_series=0 max_select_buckets=0
influxdb_1  | ts=2021-08-09T12:25:15.058216Z lvl=debug msg="STREAM: Starting nats-streaming-server[platform] version 0.11.2" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.058256Z lvl=debug msg="STREAM: ServerID: rEGjOfefFwaIa3iaHHbBTr" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.058268Z lvl=debug msg="STREAM: Go version: go1.15.2" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.059435Z lvl=debug msg="Starting nats-server version 1.3.0" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.059472Z lvl=debug msg="Git commit [not set]" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.060311Z lvl=debug msg="Listening for client connections on localhost:4222" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.060353Z lvl=debug msg="Server is ready" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.087041Z lvl=debug msg="STREAM: Recovering the state..." log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.087086Z lvl=debug msg="STREAM: No recovered state" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337777Z lvl=debug msg="STREAM: Message store is MEMORY" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337860Z lvl=debug msg="STREAM: ---------- Store Limits ----------" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337876Z lvl=debug msg="STREAM: Channels:                  100 *" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337890Z lvl=debug msg="STREAM: --------- Channels Limits --------" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337902Z lvl=debug msg="STREAM:   Subscriptions:          1000 *" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337911Z lvl=debug msg="STREAM:   Messages     :       1000000 *" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337919Z lvl=debug msg="STREAM:   Bytes        :     976.56 MB *" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337927Z lvl=debug msg="STREAM:   Age          :     unlimited *" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337935Z lvl=debug msg="STREAM:   Inactivity   :     unlimited *" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.337943Z lvl=debug msg="STREAM: ----------------------------------" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.341854Z lvl=debug msg="STREAM: Channel \"metrics\" has been created" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.343113Z lvl=debug msg="STREAM: Channel \"promTarget\" has been created" log_id=0Vripjb0000 service=nats nats_level=notice
influxdb_1  | ts=2021-08-09T12:25:15.360381Z lvl=info msg=Listening log_id=0Vripjb0000 service=tcp-listener transport=http addr=:8086 port=8086
influxdb_1  | ts=2021-08-09T12:25:15.360373Z lvl=info msg=Starting log_id=0Vripjb0000 service=telemetry interval=8h
influxdb_1  | ts=2021-08-09T12:25:27.736276Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.147ms
influxdb_1  | ts=2021-08-09T12:25:27.736349Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:25:27.736845Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2 query= proto=HTTP/1.1 status_code=200 response_size=1022 content_length=0 referrer=https://influxdb.mydomainname/ remote=172.21.0.3:51064 user_agent=Chrome took=1.080ms body=
influxdb_1  | ts=2021-08-09T12:25:27.739294Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/ remote=172.21.0.3:51066 user_agent=Chrome took=3.434ms body=
influxdb_1  | ts=2021-08-09T12:25:27.857986Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.068ms
influxdb_1  | ts=2021-08-09T12:25:27.858122Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:25:27.858915Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=1.307ms body=
influxdb_1  | ts=2021-08-09T12:25:27.884688Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/24e3b8ba6e.svg query= proto=HTTP/1.1 status_code=200 response_size=5613 content_length=0 referrer=https://influxdb.mydomainname/3.23115f97bf.css remote=172.21.0.3:51066 user_agent=Chrome took=1.685ms body=
influxdb_1  | ts=2021-08-09T12:25:27.891660Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/6515f0452e.woff2 query= proto=HTTP/1.1 status_code=200 response_size=45828 content_length=0 referrer=https://influxdb.mydomainname/2.9d42c3b33b.css remote=172.21.0.3:51066 user_agent=Chrome took=2.342ms body=
influxdb_1  | ts=2021-08-09T12:25:32.281434Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/onboarding/0 query= proto=HTTP/1.1 status_code=200 response_size=511 content_length=0 referrer= remote=172.21.0.3:51066 user_agent=Chrome took=0.586ms body=
influxdb_1  | ts=2021-08-09T12:25:32.357770Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/d5bc57f67c.js query= proto=HTTP/1.1 status_code=200 response_size=6540 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=1.741ms body=
influxdb_1  | ts=2021-08-09T12:25:32.462223Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/20.148b8177c2.js query= proto=HTTP/1.1 status_code=200 response_size=559879 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51142 user_agent=Chrome took=93.594ms body=
influxdb_1  | ts=2021-08-09T12:25:32.633945Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/7cd40f184b.wasm query= proto=HTTP/1.1 status_code=200 response_size=2421597 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51064 user_agent=Chrome took=266.320ms body=
influxdb_1  | ts=2021-08-09T12:25:32.671631Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/19.0e4623e25c.js query= proto=HTTP/1.1 status_code=200 response_size=2985705 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=304.681ms body=
influxdb_1  | ts=2021-08-09T12:25:32.883845Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/126.eed9c24385.js query= proto=HTTP/1.1 status_code=200 response_size=15699 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=1.455ms body=
influxdb_1  | ts=2021-08-09T12:25:32.933044Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/1.fb57aed61e.js query= proto=HTTP/1.1 status_code=200 response_size=15211 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51064 user_agent=Chrome took=2.660ms body=
influxdb_1  | ts=2021-08-09T12:25:32.935517Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2 query= proto=HTTP/1.1 status_code=200 response_size=1022 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51150 user_agent=Chrome took=0.499ms body=
influxdb_1  | ts=2021-08-09T12:25:32.939884Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/59.094ef24ead.js query= proto=HTTP/1.1 status_code=200 response_size=18209 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51142 user_agent=Chrome took=4.714ms body=
influxdb_1  | ts=2021-08-09T12:25:32.943573Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/10.b37f71cc8e.js query= proto=HTTP/1.1 status_code=200 response_size=168450 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=13.472ms body=
influxdb_1  | ts=2021-08-09T12:25:32.972347Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.124ms
influxdb_1  | ts=2021-08-09T12:25:32.972419Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:25:32.972801Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=0.737ms body=
influxdb_1  | ts=2021-08-09T12:25:32.977113Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/favicon.ico query= proto=HTTP/1.1 status_code=200 response_size=5430 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=1.850ms body=
influxdb_1  | ts=2021-08-09T12:25:34.093114Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/0367a1dab7.woff2 query= proto=HTTP/1.1 status_code=200 response_size=48068 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=1.241ms body=
influxdb_1  | ts=2021-08-09T12:26:17.326087Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:26:17.326621Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=148 referrer= remote=192.168.1.185:54028 user_agent=node-fetch took=0.663ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:26:27.918349Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.155ms
influxdb_1  | ts=2021-08-09T12:26:27.918403Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:26:27.918575Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2 query= proto=HTTP/1.1 status_code=200 response_size=1022 content_length=0 referrer=https://influxdb.mydomainname/ remote=172.21.0.3:51066 user_agent=Chrome took=0.602ms body=
influxdb_1  | ts=2021-08-09T12:26:27.918633Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/ remote=172.21.0.3:51142 user_agent=Chrome took=0.555ms body=
influxdb_1  | ts=2021-08-09T12:26:28.019741Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.071ms
influxdb_1  | ts=2021-08-09T12:26:28.019788Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:26:28.020146Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51142 user_agent=Chrome took=0.634ms body=
influxdb_1  | ts=2021-08-09T12:27:46.104676Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/orgs/b0688b9af70a1f81/dashboards/07a8010dca746000 query= proto=HTTP/1.1 status_code=200 response_size=511 content_length=0 referrer= remote=172.21.0.3:51142 user_agent=Chrome took=0.544ms body=
influxdb_1  | ts=2021-08-09T12:27:46.545793Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2 query= proto=HTTP/1.1 status_code=200 response_size=1022 content_length=0 referrer=https://influxdb.mydomainname/orgs/b0688b9af70a1f81/dashboards/07a8010dca746000 remote=172.21.0.3:51142 user_agent=Chrome took=0.472ms body=
influxdb_1  | ts=2021-08-09T12:27:46.546658Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.172ms
influxdb_1  | ts=2021-08-09T12:27:46.546780Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:27:46.547192Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/orgs/b0688b9af70a1f81/dashboards/07a8010dca746000 remote=172.21.0.3:51066 user_agent=Chrome took=0.821ms body=
influxdb_1  | ts=2021-08-09T12:27:46.647351Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.093ms
influxdb_1  | ts=2021-08-09T12:27:46.647394Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:27:46.647635Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51066 user_agent=Chrome took=0.537ms body=
influxdb_1  | ts=2021-08-09T12:27:52.317643Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.124ms
influxdb_1  | ts=2021-08-09T12:27:52.317687Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:27:52.317880Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2 query= proto=HTTP/1.1 status_code=200 response_size=1022 content_length=0 referrer=https://influxdb.mydomainname/ remote=172.21.0.3:51066 user_agent=Chrome took=0.487ms body=
influxdb_1  | ts=2021-08-09T12:27:52.317998Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/ remote=172.21.0.3:51142 user_agent=Chrome took=0.664ms body=
influxdb_1  | ts=2021-08-09T12:27:52.377070Z lvl=debug msg="is onboarding" log_id=0Vripjb0000 handler=onboard took=0.044ms
influxdb_1  | ts=2021-08-09T12:27:52.377148Z lvl=debug msg="Onboarding eligibility check finished" log_id=0Vripjb0000 result=true
influxdb_1  | ts=2021-08-09T12:27:52.377513Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=GET host=influxdb.mydomainname path=/api/v2/setup query= proto=HTTP/1.1 status_code=200 response_size=20 content_length=0 referrer=https://influxdb.mydomainname/onboarding/0 remote=172.21.0.3:51142 user_agent=Chrome took=0.604ms body=
influxdb_1  | ts=2021-08-09T12:27:59.348048Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:27:59.348371Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=81 referrer= remote=192.168.1.185:55922 user_agent=node-fetch took=0.476ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:27:59.348748Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:27:59.348910Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=96 referrer= remote=192.168.1.185:55924 user_agent=node-fetch took=0.281ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:31:16.994834Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:31:16.995072Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=148 referrer= remote=192.168.1.185:59564 user_agent=node-fetch took=0.364ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:32:25.717213Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:32:25.717563Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=148 referrer= remote=192.168.1.185:60816 user_agent=node-fetch took=0.533ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:32:38.220974Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:32:38.221288Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=147 referrer= remote=192.168.1.185:32798 user_agent=node-fetch took=0.429ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:32:59.376685Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:32:59.376946Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=81 referrer= remote=192.168.1.185:33224 user_agent=node-fetch took=0.424ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:32:59.377347Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:32:59.377581Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=96 referrer= remote=192.168.1.185:33226 user_agent=node-fetch took=0.304ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:33:04.411537Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:33:04.411829Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=85 referrer= remote=192.168.1.185:33320 user_agent=node-fetch took=0.463ms error=unauthorized error_code=unauthorized
influxdb_1  | ts=2021-08-09T12:33:12.113780Z lvl=info msg=Unauthorized log_id=0Vripjb0000 error="authorization not found"
influxdb_1  | ts=2021-08-09T12:33:12.114095Z lvl=debug msg=Request log_id=0Vripjb0000 service=http method=POST host=192.168.1.185:8086 path=/api/v2/write query="bucket=iot&org=myorg&precision=ns" proto=HTTP/1.1 status_code=401 response_size=55 content_length=156 referrer= remote=192.168.1.185:33456 user_agent=node-fetch took=0.429ms error=unauthorized error_code=unauthorized
steve@nucnuc2:~/iot/influxdb$

regards
Steve

This is the result of a difference between the quay.io-hosted build and the Dockerhub build. See the migration docs for full details, but I believe replacing:

./data:/root/

with:

./data/.influxdbv2:/var/lib/influxdb2

should make things work for you

Perfect!

Thank you.
Steve