HassOS on RPi change docker network

For anyone else that runs into this.
The main issue is that by default docker seems to reserver 172.17.0.1/16 for the bridge network it creates. This is all IPs between 172.17.0.1-172.17.255.254 (alot of IPs) and this conflicted with my internal IP range so I had to change it.

The only way I figured out is as follows:

  1. Connect directly to the host running HassOS (monitor, keyboard, mouse).
  2. At the login prompt type: root
  3. at the HA prompt type: login
  4. Now you should be at the shell.
  5. Go to /etc/docker
  6. Create a file called: daemon.json with the following content:
{ "bip": "172.16.0.1/16" }
  1. Save the file.
  2. Restart docker: systemctl restart docker

Now you should be good. you may have to reboot the host to get all the other docker images running but at least 172.17.x IP range is now external to docker and will get routed properly.

2 Likes