Delete or reuse PHP_CodeSniffer Docker containers

I'm using PHP_CodeSniffer from a Docker image to match the version in our GitLab pipelines, and I've realised that every time a file is checked I get a new entry in Services/ Docker/ Container (the same as running "docker container ls --all"). Is that the expected outcome? I don't see any place to add the “--rm” flag to the command.