Add labels to containers on run

This commit is contained in:
Djordje Lukic 2020-05-18 10:33:01 +02:00
parent 0c6b6beec4
commit fcb4b606e2
10 changed files with 258 additions and 167 deletions

View file

@ -53,6 +53,7 @@ func Command() *cobra.Command {
cmd.Flags().StringArrayVarP(&opts.Publish, "publish", "p", []string{}, "Publish a container's port(s). [HOST_PORT:]CONTAINER_PORT")
cmd.Flags().StringVar(&opts.Name, "name", getRandomName(), "Assign a name to the container")
cmd.Flags().StringArrayVarP(&opts.Labels, "label", "l", []string{}, "Set meta data on a container")
return cmd
}