Hi,
I am using truenas scale electric eel.
I have created a specific container for the VPN and different container for apps like sonarr etc…
I created a script which restart container which have network_mode: container VPN set if VPN is restarted.
if I use the command docker stop\start or restart VPN container, the container id remain the same and the script works.
However, if I use the button stop and start on the truenas scale interface, the container id change and break all the container using Network_mode: container vpn
a docker command on the running container will show the error :
toto@truenas[~]# docker stop sonarr
sonarr
toto@truenas[~]# docker start sonarr
Error response from daemon: No such container: 3d4563b6f71e35e998c05bd372efab9e4eb57e829a526463f9e2095346445fd4
Error: failed to start containers: sonarr
the id 3d4563b6f71e35e998c05bd372efab9e4eb57e829a526463f9e2095346445fd4 is the id of the container VPN before the restart.
it seems instead to perform a stop and start, the interface will replace the existing container.
Any idea if we can specify what should be the behaviour when using the interface ?
Thanks