mirror of https://github.com/docker/compose.git
Merge pull request #269 from docker/aci_detach_flags
Add ACI detach flags
This commit is contained in:
commit
e24f2a36c2
|
@ -39,6 +39,7 @@ func upCommand() *cobra.Command {
|
|||
upCmd.Flags().StringVar(&opts.WorkDir, "workdir", ".", "Work dir")
|
||||
upCmd.Flags().StringArrayVarP(&opts.ConfigPaths, "file", "f", []string{}, "Compose configuration files")
|
||||
upCmd.Flags().StringArrayVarP(&opts.Environment, "environment", "e", []string{}, "Environment variables")
|
||||
upCmd.Flags().BoolP("detach", "d", true, " Detached mode: Run containers in the background")
|
||||
|
||||
return upCmd
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ func Command() *cobra.Command {
|
|||
cmd.Flags().StringVar(&opts.Name, "name", "", "Assign a name to the container")
|
||||
cmd.Flags().StringArrayVarP(&opts.Labels, "label", "l", []string{}, "Set meta data on a container")
|
||||
cmd.Flags().StringArrayVarP(&opts.Volumes, "volume", "v", []string{}, "Volume. Ex: user:key@my_share:/absolute/path/to/target")
|
||||
cmd.Flags().BoolP("detach", "d", true, "Run container in background and print container ID")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ Usage:
|
|||
run [flags]
|
||||
|
||||
Flags:
|
||||
-d, --detach Run container in background and print container ID (default true)
|
||||
-l, --label stringArray Set meta data on a container
|
||||
--name string Assign a name to the container
|
||||
-p, --publish stringArray Publish a container's port(s). [HOST_PORT:]CONTAINER_PORT
|
||||
|
|
Loading…
Reference in New Issue