Containers Clean up when using docker executor with docker:dind

I would like to know If I user docker-compose in CI with docker:dind. How should I handle the containers cleanup? When the job is finished, does every containers started clean up automatically?