Docker - cant locate configuration.yaml

Hi,
I used HA on Rpi3 for a long time. Now I migrate to Ubuntu. I`ve installed HA through recommended script https://gist.github.com/frenck/32b4f74919ca6b95b30c66f85976ec58 as Docker.

HA running and all sounds good, but now I need migrate configuration.
But I cant locale “config” dir where are configuration.yaml, customize.yaml etc.
I think that is in “/usr/share/hassio” but folder doesnt exists. I try create it and copy files my configurations there but nothing happen (after restart of course).

Thanks for any help.

1 Like

Were you running Hassio on your Raspberry Pi as well? If so, you can take a snapshot of your setup on the Pi, copy it over to the new machine, and restore it on the new machine.

What was your actual docker command? I use

docker run -d --name="home-assistant" -v /home/jason/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant

Then the config and other files are in /home/jason/homeassistant

It appears he ran the Hassio installer as opposed to doing a Docker install.

I have installed it from https://github.com/home-assistant/hassio-installer

There is a supervisor script ( https://github.com/home-assistant/hassio-installer/blob/f7e41126bbc0a1e38dbb3097ce8a0de3f5230c95/files/hassio-supervisor ). I found that is mount path:

/root/snap/docker/common/hassio/homeassistant

where is configuration.yaml etc. but when I copy contents here it was overwriten …

After a few hours I remove everything and reinstall it standalone via

docker run --init -d --name="home-assistant" -e "TZ=Europe/Prague" -v /home/frosty22/homeassistant:/config --net=host homeassistant/home-assistant:stable

and it looks that all is good.

Thank you.