spiegel_podman/pkg/api
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
..
handlers Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
server Add 409 response to swagger godoc 2022-02-10 13:47:24 -07:00
types Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
Makefile [CI:DOCS] Update swagger definition of inspect manifest 2021-04-07 09:18:23 -07:00
tags.yaml [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00