diff options
author | Chen Zhiwei <zhiweik@gmail.com> | 2019-08-17 02:42:36 +0000 |
---|---|---|
committer | Chen Zhiwei <zhiweik@gmail.com> | 2019-08-18 03:48:40 +0000 |
commit | 7aefc1ac33ba153f6177e9fe3c4da886de49a9e2 (patch) | |
tree | fdd2f01237c17263ea06655321696ac3f9f754e0 /cmd/podman/pod_create.go | |
parent | 8eab96ec3afdc04c02b5ea1c2067e4a36c14c783 (diff) | |
download | podman-7aefc1ac33ba153f6177e9fe3c4da886de49a9e2.tar.gz podman-7aefc1ac33ba153f6177e9fe3c4da886de49a9e2.tar.bz2 podman-7aefc1ac33ba153f6177e9fe3c4da886de49a9e2.zip |
Allow customizing pod hostname
* set hostname in pod yaml file
* set --hostname in pod create command
Signed-off-by: Chen Zhiwei <zhiweik@gmail.com>
Diffstat (limited to 'cmd/podman/pod_create.go')
-rw-r--r-- | cmd/podman/pod_create.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go index d04c85dba..ad3c00aa8 100644 --- a/cmd/podman/pod_create.go +++ b/cmd/podman/pod_create.go @@ -52,6 +52,7 @@ func init() { flags.StringSliceVar(&podCreateCommand.LabelFile, "label-file", []string{}, "Read in a line delimited file of labels") flags.StringSliceVarP(&podCreateCommand.Labels, "label", "l", []string{}, "Set metadata on pod (default [])") flags.StringVarP(&podCreateCommand.Name, "name", "n", "", "Assign a name to the pod") + flags.StringVarP(&podCreateCommand.Hostname, "hostname", "", "", "Set a hostname to the pod") flags.StringVar(&podCreateCommand.PodIDFile, "pod-id-file", "", "Write the pod ID to the file") flags.StringSliceVarP(&podCreateCommand.Publish, "publish", "p", []string{}, "Publish a container's port, or a range of ports, to the host (default [])") flags.StringVar(&podCreateCommand.Share, "share", shared.DefaultKernelNamespaces, "A comma delimited list of kernel namespaces the pod will share") |