spiegel_podman/pkg
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
..
annotations Spelling 2020-12-22 13:34:31 -05:00
api Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
auth Run codespell on code 2022-01-21 09:52:12 -05:00
autoupdate bump go module to version 4 2022-01-18 12:47:07 +01:00
bindings Make sure building with relative paths work correctly. 2022-02-10 20:40:09 -05:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint Fix checkpoint/restore pod tests 2022-02-11 15:11:48 +00:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu Error out early if system does not support pre-copy checkpointing 2021-12-23 09:51:38 +00:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
env Implement env parsing on Windows 2022-01-19 12:05:04 -06:00
errorhandling Handle HTTP 409 error messages properly for Pod actions 2021-11-02 12:28:52 +01:00
hooks bump go module to version 4 2022-01-18 12:47:07 +01:00
inspect bump go module to version 4 2022-01-18 12:47:07 +01:00
kubeutils bump go module to version 4 2022-01-18 12:47:07 +01:00
lookup Enable whitespace linter 2021-02-11 23:01:56 +01:00
machine Update to podman4 copr stream 2022-02-16 03:49:17 -06:00
namespaces [NO TESTS NEEDED] Shrink the size of podman-remote 2021-03-29 09:49:45 -04:00
parallel bump go module to version 4 2022-01-18 12:47:07 +01:00
ps bump go module to version 4 2022-01-18 12:47:07 +01:00
resolvconf Revert "Move each search dns to its own line" 2022-02-02 19:33:21 +01:00
rootless rootless: report correctly the error 2022-01-19 21:14:33 +01:00
rootlessport use libnetwork from c/common 2022-01-12 17:07:30 +01:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
signal Fix build for mips architecture follow-up 2021-01-07 15:04:22 +01:00
specgen Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
specgenutil Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
systemd Handlers for generate systemd with custom dependencies 2022-01-19 21:46:16 +05:00
terminal Fix #11444: remote breaks with stdout redirection 2021-09-13 17:42:48 +03:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
trust standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
util idmap should be able to be specified along with other options 2022-02-08 17:08:49 -05:00