Merge pull request #27857 from vasil-yordanov/docker-service-hostname-2

Adding the hostname option to docker service command
This commit is contained in:
Vincent Demeester
2016-11-04 15:22:55 +01:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,7 @@ func newCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
flags.VarP(&opts.labels, flagLabel, "l", "Service labels")
flags.Var(&opts.containerLabels, flagContainerLabel, "Container labels")
flags.StringVar(&opts.hostname, flagHostname, "", "Container hostname")
flags.VarP(&opts.env, flagEnv, "e", "Set environment variables")
flags.Var(&opts.envFile, flagEnvFile, "Read in a file of environment variables")
flags.Var(&opts.mounts, flagMount, "Attach a filesystem mount to the service")