diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-24 18:09:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 18:09:43 +0100 |
commit | caaaf07c1e9d30d91122a462e65cea5ca49391d0 (patch) | |
tree | 4071e2b5cb7801c4daabbd7ad1d1f784bf157f9a /cmd/podman | |
parent | 32748492e919b9f3a7882dc2febc454d39c04c3e (diff) | |
parent | b469bf5c05ce05e7b77852fa686f1e26dd59ec3e (diff) | |
download | podman-caaaf07c1e9d30d91122a462e65cea5ca49391d0.tar.gz podman-caaaf07c1e9d30d91122a462e65cea5ca49391d0.tar.bz2 podman-caaaf07c1e9d30d91122a462e65cea5ca49391d0.zip |
Merge pull request #13587 from giuseppe/clone-to-pod
container: allow clone to an existing pod
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/common/create.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index 8d9a255ec..afaa1942e 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -394,14 +394,6 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, ) _ = cmd.RegisterFlagCompletionFunc(platformFlagName, completion.AutocompleteNone) - podFlagName := "pod" - createFlags.StringVar( - &cf.Pod, - podFlagName, "", - "Run container in an existing pod", - ) - _ = cmd.RegisterFlagCompletionFunc(podFlagName, AutocompletePods) - podIDFileFlagName := "pod-id-file" createFlags.StringVar( &cf.PodIDFile, @@ -837,6 +829,14 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, ) _ = cmd.RegisterFlagCompletionFunc(nameFlagName, completion.AutocompleteNone) + podFlagName := "pod" + createFlags.StringVar( + &cf.Pod, + podFlagName, "", + "Run container in an existing pod", + ) + _ = cmd.RegisterFlagCompletionFunc(podFlagName, AutocompletePods) + cpuPeriodFlagName := "cpu-period" createFlags.Uint64Var( &cf.CPUPeriod, |