spiegel_podman/test/e2e
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
..
build podman-remote: prevent leaking secret into image 2021-11-30 15:44:10 +05:30
cdi Add support for CDI device configuration 2021-04-20 09:18:52 -04:00
config Fix network mode in play kube 2021-11-12 18:32:01 +01:00
hooks Add hooks support to podman 2018-04-05 14:13:49 +00:00
sign save image remove signatures 2020-10-21 10:00:08 -04:00
testdata migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
attach_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
build_test.go Bump Buildah to v1.24.0 2022-01-27 07:03:56 -05:00
checkpoint_test.go Fix checkpoint/restore pod tests 2022-02-11 15:11:48 +00:00
commit_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
common_test.go enable netavark specific tests 2022-02-11 13:34:28 -05:00
config.go fix CI 2021-11-18 15:19:14 +01:00
config_amd64.go e2e tests: enable golint 2021-11-29 08:30:00 -07:00
config_ppc64le.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
container_clone_test.go Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
container_create_volume_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
container_inspect_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_conf_test.go Fix size to match Docker selection 2022-02-01 17:19:19 -05:00
cp_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
create_staticip_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
create_staticmac_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
create_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
diff_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
events_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
exec_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
exists_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
export_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
generate_kube_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
generate_systemd_test.go Handlers for generate systemd with custom dependencies 2022-01-19 21:46:16 +05:00
healthcheck_run_test.go healthcheck, libpod: Read healthcheck event output from os pipe 2022-02-04 21:15:03 +05:30
history_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
image_scp_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
image_sign_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
images_test.go e2e: merge after/since image-filter tests 2022-02-16 10:33:57 +01:00
import_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
info_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
init_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
inspect_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
kill_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
libpod_suite_remote_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
libpod_suite_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
load_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
login_logout_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
logs_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
manifest_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
mount_rootless_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
mount_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
namespace_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
negative_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
network_connect_disconnect_test.go Modify /etc/resolv.conf when connecting/disconnecting 2022-02-10 09:44:00 -05:00
network_create_test.go enable netavark specific tests 2022-02-11 13:34:28 -05:00
network_test.go enable netavark specific tests 2022-02-11 13:34:28 -05:00
pause_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
play_build_test.go Run codespell on code 2022-01-21 09:52:12 -05:00
play_kube_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
pod_create_test.go Merge pull request #12930 from cdoern/podCgroup 2022-02-04 09:41:12 -05:00
pod_infra_container_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_initcontainers_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_inspect_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_kill_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_pause_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_pod_namespaces_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_prune_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_ps_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
pod_restart_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_rm_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_start_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_stats_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_stop_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pod_top_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
port_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
prune_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
ps_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
pull_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
push_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
rename_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
restart_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
rm_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
rmi_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_apparmor_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_cgroup_parent_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_cleanup_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_cpu_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_device_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_dns_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_entrypoint_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_env_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_exit_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_memory_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_networking_test.go enable netavark specific tests 2022-02-11 13:34:28 -05:00
run_ns_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_passwd_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_privileged_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_restart_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_seccomp_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_security_labels_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_selinux_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_signal_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_staticip_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
run_test.go libpod: enforce noexec,nosuid,nodev for /dev/shm 2022-02-02 10:03:18 +01:00
run_userns_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_volume_test.go volume: add support for non-volatile upperdir,workdir for overlay volumes 2022-01-28 13:10:15 +05:30
run_working_dir_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
runlabel_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
save_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
search_test.go netavark e2e tests 2022-02-02 13:03:45 -06:00
secret_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
start_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
stats_test.go libpod: report slirp4netns network stats 2022-02-01 16:23:58 +01:00
stop_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
system_connection_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
system_df_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
system_dial_stdio_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
system_reset_test.go system prune: remove all networks 2022-02-03 13:14:07 +01:00
system_service_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
systemd_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
tag_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
toolbox_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
top_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
tree_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
trust_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
unshare_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
untag_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
version_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
volume_create_test.go Run codespell on code 2022-01-21 09:52:12 -05:00
volume_exists_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
volume_inspect_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
volume_ls_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
volume_plugin_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
volume_prune_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
volume_rm_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
wait_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00