Skip to content

Commit

Permalink
podman pod clone
Browse files Browse the repository at this point in the history
implement podman pod clone, a command to create an exact copy of a pod while changing
certain config elements

current supported flags are:
--name change the pod name
--destroy remove the original pod
--start run the new pod on creation
and all infra-container related flags from podman pod create (namespaces etc)

resolves containers#12843

Signed-off-by: cdoern <[email protected]>
  • Loading branch information
cdoern authored and karthikelango137 committed Jul 5, 2022
1 parent 39fc5d1 commit fa9e760
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/podman/pods/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func cloneFlags(cmd *cobra.Command) {

common.DefineCreateDefaults(&podClone.InfraOptions)
common.DefineCreateFlags(cmd, &podClone.InfraOptions, true, false)

podClone.InfraOptions.MemorySwappiness = -1 // this is not implemented for pods yet, need to set -1 default manually

// need to fill an empty ctr create option for each container for sane defaults
Expand Down

0 comments on commit fa9e760

Please sign in to comment.