multiple Instances of same Image will not recreate all Instances
Hello,
after the Fix for new XML I am happy to use this great tool again. But I have a little Problem. I have two Radarr and Sonorr Instances for HD and 4K from the same image just the name is a bit different radarr and radarr-4k When radarr rebuilds its says radarr already exists and stops. Then recreating radarr-4k works because there is no other radarr running at this time. A workaround is to use different images but I don't really want to do that. Please help.
docker ps -f name=radarr CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 37b2aaa26a44 ich777/radarr "/opt/scripts/start.…" 4 seconds ago Up 3 seconds radarr 36ac459e7427 ich777/radarr "/opt/scripts/start.…" 3 minutes ago Up 3 minutes radarr-4K
Ok seems like ParseDockerTemplate.sh if [ $(docker ps -f name=$container_name | wc -l) = "1" ] ; then in line 263 can not divide between name just different at the end.
so I changed the name so something else and its ok.
may you can get the id and not filter by name at this point.