Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 9fc8257

Browse files
authored
Merge pull request #141 from carmark/default_compose_file
modify the default yml file to docker-compose.yml
2 parents 7a0c5cd + 0dec6b7 commit 9fc8257

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/client/compose.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (cli *DockerCli) CmdCompose(args ...string) error {
3737
// Usage: hyper compose run [OPTIONS] SERVICE [COMMAND] [ARGS...]
3838
func (cli *DockerCli) CmdComposeRun(args ...string) error {
3939
cmd := Cli.Subcmd("compose run", []string{"SERVICE [COMMAND] [ARGS...]"}, "Run a one-off command on a service", false)
40-
composeFile := cmd.String([]string{"f", "-file"}, "hyper-compose.yml", "Specify an alternate compose file")
40+
composeFile := cmd.String([]string{"f", "-file"}, "docker-compose.yml", "Specify an alternate compose file")
4141
projectName := cmd.String([]string{"p", "-project-name"}, "", "Specify an alternate project name")
4242
rm := cmd.Bool([]string{"-rm"}, false, "Remove container after run, ignored in detached mode")
4343

@@ -123,7 +123,7 @@ func (cli *DockerCli) CmdComposeUp(args ...string) error {
123123
"flag.\n\n"+
124124
"If you want to force Compose to stop and recreate all containers, use the\n"+
125125
"`--force-recreate` flag.", false)
126-
composeFile := cmd.String([]string{"f", "-file"}, "hyper-compose.yml", "Specify an alternate compose file")
126+
composeFile := cmd.String([]string{"f", "-file"}, "docker-compose.yml", "Specify an alternate compose file")
127127
projectName := cmd.String([]string{"p", "-project-name"}, "", "Specify an alternate project name")
128128
detach := cmd.Bool([]string{"d", "-detach"}, false, "Detached mode: Run containers in the background,\nprint new container names.\nIncompatible with --abort-on-container-exit.")
129129
forcerecreate := cmd.Bool([]string{"-force-recreate"}, false, "Recreate containers even if their configuration\nand image haven't changed.\nIncompatible with --no-recreate.")
@@ -239,7 +239,7 @@ func (cli *DockerCli) CmdComposeStop(args ...string) error {
239239
// Usage: hyper compose create [OPTIONS]
240240
func (cli *DockerCli) CmdComposeCreate(args ...string) error {
241241
cmd := Cli.Subcmd("compose create", []string{"[SERVICE...]"}, "Creates containers for a service.", false)
242-
composeFile := cmd.String([]string{"f", "-file"}, "hyper-compose.yml", "Specify an alternate compose file")
242+
composeFile := cmd.String([]string{"f", "-file"}, "docker-compose.yml", "Specify an alternate compose file")
243243
projectName := cmd.String([]string{"p", "-project-name"}, "", "Specify an alternate project name")
244244
forcerecreate := cmd.Bool([]string{"-force-recreate"}, false, "Recreate containers even if their configuration\nand image haven't changed.\nIncompatible with --no-recreate.")
245245
norecreate := cmd.Bool([]string{"-no-recreate"}, false, "If containers already exist, don't recreate them.\nIncompatible with --force-recreate.")
@@ -280,7 +280,7 @@ func (cli *DockerCli) CmdComposeCreate(args ...string) error {
280280
// Usage: hyper compose ps [OPTIONS]
281281
func (cli *DockerCli) CmdComposePs(args ...string) error {
282282
cmd := Cli.Subcmd("compose ps", []string{"[SERVICE...]"}, "List containers.", false)
283-
composeFile := cmd.String([]string{"f", "-file"}, "hyper-compose.yml", "Specify an alternate compose file")
283+
composeFile := cmd.String([]string{"f", "-file"}, "docker-compose.yml", "Specify an alternate compose file")
284284
projectName := cmd.String([]string{"p", "-project-name"}, "", "Specify an alternate project name")
285285
quiet := cmd.Bool([]string{"q", "-quiet"}, false, "Only display IDs")
286286
cmd.Require(flag.Min, 0)
@@ -364,7 +364,7 @@ func (cli *DockerCli) CmdComposeRm(args ...string) error {
364364
// Usage: hyper compose scale [OPTIONS] [SERVICE=NUM...]
365365
func (cli *DockerCli) CmdComposeScale(args ...string) error {
366366
cmd := Cli.Subcmd("compose scale", []string{"[SERVICE=NUM...]"}, "Set number of containers to run for a service.", false)
367-
composeFile := cmd.String([]string{"f", "-file"}, "hyper-compose.yml", "Specify an alternate compose file")
367+
composeFile := cmd.String([]string{"f", "-file"}, "docker-compose.yml", "Specify an alternate compose file")
368368
projectName := cmd.String([]string{"p", "-project-name"}, "", "Specify an alternate project name")
369369
timeout := cmd.Int([]string{"t", "-timeout"}, 10, "Specify a shutdown timeout in seconds")
370370
cmd.Require(flag.Min, 0)

0 commit comments

Comments
 (0)