Move installation to another Docker host

I recently discovered that my installation of Home Assistant Supervised is not healthy and is unsupported. This is because, for whatever reason you can imagine, Home Assistant does not like it when you have additional Docker containers besides its own.

The solution is simple:

  • Create a new Ubuntu Docker container
  • Set it up for a Supervised installation
  • Move every Home Assistant container to a newly created OS

And I’m stuck at the third step. Can someone who did this before explain how can I migrate every container including volumes, saving all the changes and configurations, to another Docker host? How to dynamically forward ports from that machine to my main machine when I need it? (afaik Docker does not support dynamic port forwarding from a running container)

Supervised only works on Debian- these are the requirements. If you dont follow the requirements it will be flagged as “unhealthy” and wont update, or could stop working altogether

If you install a supported supervised version on Debian you move the installation by taking a backup on the old machine and restoring it on a new one.

Will the backup actually contain all the ESPHome and Z2MQTT configuration, MariaDB tables and Nginx SSL certs?

A full backup on supervised includes the addon data as well

(only manually installed or created add-ons, not those installed from the store)

I have installed all of my plugins from the store, and they currently contain data about network routing and Zigbee devices of my smart home. Does this mean I need to take an extra step backing up everything manually?

Unless you changed the storage settings on your addons you installed from the store, they default to storing all the data in the same directory as your homeassistant config directory. If you explore that directory, all the files from your addons should be in there, and the documentation notes this directory is part of the backup.

Specifically for zigbee2mqtt, the default path for backup data is config/zigbee2mqtt . You can double check your zigbee2mqtt config to see if this is the directory for your install.

What might complicate or make your backup fail is the “unhealthy” state of the supervisor. Did you take a full backup ever before it was “unhealthy”?