Autorun script or command in hass docker container

Hello,

I am using home-assistant in a docker container (official image). Now I need to set a static route (ip route add 10.13.13.1 via 172.19.0.2). I don’t want to use a custom image, I am looking for another solution. My idea was to include a script in the container. However, neither the scripts in /etc/network/if-* nor /etc/rc.local are executed. Any ideas?

That sounds more like something that should be done outside of the container - on the docker host itself…