diff options
author | Brent Baude <bbaude@redhat.com> | 2020-02-03 15:30:17 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-02-03 15:30:17 -0600 |
commit | b438cb2cce33ac727f3b0c24154055e287fead4d (patch) | |
tree | ac4e9f8f8f9671d09e48fbfc2032fb9c56d8068b /cmd/podman/create.go | |
parent | 23f795786224c27f737e9043e9d513f54fa35ba8 (diff) | |
download | podman-b438cb2cce33ac727f3b0c24154055e287fead4d.tar.gz podman-b438cb2cce33ac727f3b0c24154055e287fead4d.tar.bz2 podman-b438cb2cce33ac727f3b0c24154055e287fead4d.zip |
seperate container create network options
this pr splits off some of the network container create options into a different flag set. the options in question are:
--add-host
--dns
--dns-opt
--dns-search
--ip
--mac-address
--network
--no-hosts
--publish
in the future, these options are going to be added to the pod create flags. this makes that transition easier and provides for less code duplication.
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r-- | cmd/podman/create.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 01cad9765..73d62bddb 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -41,6 +41,7 @@ func init() { getCreateFlags(&createCommand.PodmanCommand) flags := createCommand.Flags() + flags.AddFlagSet(getNetFlags()) flags.SetInterspersed(false) flags.SetNormalizeFunc(aliasFlags) } |