spiegel_podman/pkg/api/handlers
cdoern 94df701512 Implement Podman Container Clone
podman container clone takes the id of an existing continer and creates a specgen from the given container's config
recreating all proper namespaces and overriding spec options like resource limits and the container name if given in the cli options

this command utilizes the common function DefineCreateFlags meaning that we can funnel as many create options as we want
into clone over time allowing the user to clone with as much or as little of the original config as they want.

container clone takes a second argument which is a new name and a third argument which is an image name to use instead of the original container's

the current supported flags are:

--destroy (remove the original container)
--name (new ctr name)
--cpus (sets cpu period and quota)
--cpuset-cpus
--cpu-period
--cpu-rt-period
--cpu-rt-runtime
--cpu-shares
--cpuset-mems
--memory
--run

resolves #10875

Signed-off-by: cdoern <cdoern@redhat.com>
Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Signed-off-by: cdoern <cdoern@redhat.com>
2022-02-20 21:11:14 -05:00
..
compat compat: endpoint /build must set header content type as application/json in reponse 2022-02-07 13:38:19 +05:30
libpod Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
swagger bump go module to version 4 2022-01-18 12:47:07 +01:00
types bump go module to version 4 2022-01-18 12:47:07 +01:00
utils Fix handling of duplicate matches on id expansion 2022-01-24 13:19:16 -05:00
decoder.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types.go bump go module to version 4 2022-01-18 12:47:07 +01:00