Merge pull request #269 from docker/aci_detach_flags

Add ACI detach flags
This commit is contained in:
Guillaume Tardif 2020-06-23 16:43:42 +02:00 committed by GitHub
commit e24f2a36c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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