Container_name syntax killing other container


I’ve set up two WordPress containers with docker-compose .yml.

They both contain a container_name setting, avvero-02-wp-dev and compare-02-wp-dev.

 container_name: avvero-02-wp-dev


 container_name: compare-02-wp-dev

When I run docker-compose in avvero-02-wp-dev, it kills my compare-02-wp-dev, when I run it in compare-02-wp-dev, it kills me avvero-02-wp-dev.

Is there some link in the number value?

You may want to put your whole docker-compose.yml with the secret stuff redacted if you haven’t put them into secrets yet.