@@ -33,19 +33,25 @@ long: "You can use compose subcommand, `docker compose [-f <arg>...] [options] [
3333 pull db\n ```\n\n ### Use `-p` to specify a project name\n\n Each configuration has
3434 a project name. If you supply a `-p` flag, you can specify a project name. If
3535 you don’t \n specify the flag, Compose uses the current directory name. \n Project
36- name can also be set by `COMPOSE_PROJECT_NAME` environment variable.\n\n ### Use
37- profiles to enable optional services\n\n Use `--profile` to specify one or more
38- active profiles\n Calling `docker compose --profile frontend up` will start the
39- services with the profile `frontend` and services \n without any specified profiles.
40- \n You can also enable multiple profiles, e.g. with `docker compose --profile frontend
41- --profile debug up` the profiles `frontend` and `debug` will be enabled.\n\n Profiles
36+ name can also be set by `COMPOSE_PROJECT_NAME` environment variable.\n\n Most compose
37+ subcommand can be ran without a compose file, just passing \n project name to retrieve
38+ the relevant resources.\n\n ```\n $ docker compose -p my_project ps -a\n NAME SERVICE
39+ \ STATUS PORTS\n my_project_demo_1 demo running \n\n $
40+ docker compose -p my_project logs\n demo_1 | PING localhost (127.0.0.1): 56 data
41+ bytes\n demo_1 | 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.095 ms\n ```\n\n ###
42+ Use profiles to enable optional services\n\n Use `--profile` to specify one or
43+ more active profiles\n Calling `docker compose --profile frontend up` will start
44+ the services with the profile `frontend` and services \n without any specified
45+ profiles. \n You can also enable multiple profiles, e.g. with `docker compose --profile
46+ frontend --profile debug up` the profiles `frontend` and `debug` will be enabled.\n\n Profiles
4247 can also be set by `COMPOSE_PROFILES` environment variable.\n\n ### Set up environment
4348 variables\n\n You can set environment variables for various docker-compose options,
4449 including the `-f`, `-p` and `--profiles` flags.\n\n Setting the `COMPOSE_FILE`
4550 environment variable is equivalent to passing the `-f` flag,\n `COMPOSE_PROJECT_NAME`
4651 environment variable does the same for to the `-p` flag,\n and so does `COMPOSE_PROFILES`
4752 environment variable for to the `--profiles` flag.\n\n If flags are explicitly
4853 set on command line, associated environment variable is ignored"
54+ usage : docker compose
4955pname : docker
5056plink : docker.yaml
5157cname :
@@ -55,10 +61,12 @@ cname:
5561 - docker compose down
5662 - docker compose events
5763 - docker compose exec
64+ - docker compose images
5865 - docker compose kill
5966 - docker compose logs
6067 - docker compose ls
6168 - docker compose pause
69+ - docker compose port
6270 - docker compose ps
6371 - docker compose pull
6472 - docker compose push
@@ -77,10 +85,12 @@ clink:
7785 - docker_compose_down.yaml
7886 - docker_compose_events.yaml
7987 - docker_compose_exec.yaml
88+ - docker_compose_images.yaml
8089 - docker_compose_kill.yaml
8190 - docker_compose_logs.yaml
8291 - docker_compose_ls.yaml
8392 - docker_compose_pause.yaml
93+ - docker_compose_port.yaml
8494 - docker_compose_ps.yaml
8595 - docker_compose_pull.yaml
8696 - docker_compose_push.yaml
@@ -121,6 +131,15 @@ options:
121131 experimentalcli : false
122132 kubernetes : false
123133 swarm : false
134+ - option : no-ansi
135+ value_type : bool
136+ default_value : " false"
137+ description : Do not print ANSI control characters (DEPRECATED)
138+ deprecated : false
139+ experimental : false
140+ experimentalcli : false
141+ kubernetes : false
142+ swarm : false
124143 - option : profile
125144 value_type : stringArray
126145 default_value : ' []'
0 commit comments