i am currently learning docker and have set up a swarm with one manager and one cluster.
i run a stack with 2 replicas..everything is fine. when a container fails to run swarm will stop it and recreate it. thats awesome but the stopped containers wont get removed. is there a way to remove the stopped / unused containers automatically ?