From 43daee99e192a170f41bff38ecff5c83e520989d Mon Sep 17 00:00:00 2001 From: Marco Marra Date: Tue, 29 Mar 2022 09:41:08 +0200 Subject: [PATCH] Update envvars.md Replace underscores with hyphens in container names. --- compose/reference/envvars.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/reference/envvars.md b/compose/reference/envvars.md index ef9a16ef98..049a5a6a78 100644 --- a/compose/reference/envvars.md +++ b/compose/reference/envvars.md @@ -17,7 +17,7 @@ Docker command-line client. If you're using `docker-machine`, then the `eval "$( Sets the project name. This value is prepended along with the service name to the container on start up. For example, if your project name is `myapp` and it includes two services `db` and `web`, then Compose starts containers named -`myapp_db_1` and `myapp_web_1` respectively. +`myapp-db-1` and `myapp-web-1` respectively. Setting this is optional. If you do not set this, the `COMPOSE_PROJECT_NAME` defaults to the `basename` of the project directory. See also the `-p`