Having issue with mapping config file in docker

First time using Docker.
I am having a hard time nailing down a config mapping issue using Docker on a RPi4. I am using the latest Trixie and I was successful in getting HA setup using a Docker container except for the config issue.

When I run a check configuration like this

docker exec homeassistant python -m homeassistant --script check_config --info all

I get this which is not my configuration.yaml file but the internal created one.

Successful config (all)
homeassistant:
customize: ?
customize_domain: ?
customize_glob: ?
automation:
default_config:
scene:
frontend:
themes: ?
script:

This is my Docker run file:

docker run -d
–name homeassistant
–privileged
–restart=unless-stopped
-e TZ=US
-v /home/xxxxx/homeassistant:/config
-v /run/dbus:/run/dbus:ro
–network=host
Package home-assistant · GitHub

I verified that configuration.yaml is in /home/xxxxx/homeassistant/config.

So should I see the contents of my configuration.yaml file if I run the above check config?

Am I missing something obvious?

Thanks for any help
Mark

your mount is one folder too high.

you did:
-v /home/xxxxx/homeassistant:/config

but the file is at:
/home/xxxxx/homeassistant/config/configuration.yaml

so inside the container HA looks for /config/configuration.yaml which is actually /home/xxxxx/homeassistant/configuration.yaml on the host. that file doesnt exist, so you get the empty default config.

either:

-v /home/xxxxx/homeassistant/config:/config

or move configuration.yaml up to /home/xxxxx/homeassistant/configuration.yaml and keep the mount you have.

then:
docker exec homeassistant ls -la /config
docker exec homeassistant cat /config/configuration.yaml

should show your real file. also TZ=US is wrong, use something like America/New_York.

Off topic, but is ‘Canada/Lake America’ time zone going to be recognised soon?

Ducks and weaves away. Sorry: Couldn’t resist asking for my ever-patient friends

Thank you. That worked. I think that everything is now playing like it should.