Skip to content

Commit

Permalink
Revert _data/compose-cli/docker_compose.yaml
Browse files Browse the repository at this point in the history
This reverts part of commit 9ce29a8.

As @glours noted in the review of docker#16915, this content comes from the
upstream docker/compose repo. He's opened docker/compose#10390 to apply
the update there instead.

Signed-off-by: Mike Bland <[email protected]>
  • Loading branch information
mbland committed Mar 21, 2023
1 parent 9ce29a8 commit a5ca186
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions _data/compose-cli/docker_compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,9 @@ long: |-
### Use `-p` to specify a project name
Each configuration has a project name. Compose sets the project name using
the following mechanisms, in order of precedence:
- The `-p` command line flag
- The `COMPOSE_PROJECT_NAME` environment variable
- The top level `name:` variable from the config file (or the last `name:`
from a series of config files specified using `-f`)
- The `basename` of the project directory containing the config file (or
containing the first config file specified using `-f`)
- The `basename` of the current directory if no config file is specified
Project names must contain only lowercase letters, decimal digits, dashes,
and underscores, and must begin with a lowercase letter or decimal digit. If
the `basename` of the project directory or current directory violates this
constraint, you must use one of the other mechanisms.
Each configuration has a project name. If you supply a `-p` flag, you can specify a project name. If you don’t
specify the flag, Compose uses the current directory name.
Project name can also be set by `COMPOSE_PROJECT_NAME` environment variable.
Many Compose subcommands can be run without a Compose file by passing
the project name.
Expand Down

0 comments on commit a5ca186

Please sign in to comment.