Dokcer-compose run recreates containers

Hi. I recently tried to update from ubuntu 20 to ubuntu 22. That also updates the docker-compose from v1 to v2.

This caused problems that in CircleCI the docker-compose tried to recreate the containers if I run commands in different steps. For example migrations in first and the actual tests in second. This does not happen on my mac. How can I ensure that I’m able to run docker-compose run so that the databases are not recreated? I have some further info in my stackoverflow question: docker-compose v2 run command recreates containers - Stack Overflow

You will need to publish your script so that we can see how the steps are defined.