Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are COMPOSE_PROJECT_NAME and -p ignored in docker-compose?

Why are my COMPOSE_PROJECT_NAME and -p ignored in docker-compose?

I thought these were supposed to prepend the service names to help me organize my namespace but it seems that they are completely ignored.

like image 365
oxer Avatar asked Dec 11 '25 18:12

oxer


1 Answers

Answering my own question to hopefully save someone else the effort.

I had used the container_name option n my docker-compose.yml. Seems like if you do that then the nifty -p flag does not apply.

like image 153
oxer Avatar answered Dec 14 '25 14:12

oxer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!