Scale up/down your docker replica’s
I had my Caprover go crazy the other day. It started 5 replica’s of my service while only 1 is needed.
To fix this, I had to scale the service down to 0 and then back to 1
$ docker service scale my-app=0
my-app scaled to 0
overall progress: 0 out of 0 tasks
verify: Service converged
And then back up
$ docker service scale my-app=1
my-app scaled to 1
overall progress: 1 out of 1 tasks
1/1: running [==================================================>]
verify: Service converged