spiegel_podman/libpod
Matthew Heon fc52b0423b Do not unmarshal into c.config.Spec
We try to keep c.config immutable, but Go doesn't really agree
with me that things other than strings and ints can be immutable,
so occasionally things like this slip through.

When unmarshalling the OCI spec from disk, do it into a separate
struct, to ensure we don't make lasting modifications to the
spec in the Container struct (which could affect container
restart).

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-01-18 10:27:51 -05:00
..
adapter Merge pull request #2149 from afbjorklund/bridge 2019-01-18 15:57:30 +01:00
common Remove some unused data structures and code 2018-12-06 23:31:54 +01:00
driver switch projectatomic to containers 2018-08-16 17:12:36 +00:00
image Remove imageParts.{isTagged,registry,name,tag} 2019-01-14 04:07:24 +01:00
layers Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
lock Add darwin support for remote-client 2019-01-11 11:30:28 -06:00
testdata libpod/container_internal: Deprecate implicit hook directories 2018-12-03 12:54:30 -08:00
boltdb_state.go Move all libpod/ JSON references over to jsoniter 2019-01-10 15:48:09 -05:00
boltdb_state_internal.go Move all libpod/ JSON references over to jsoniter 2019-01-10 15:48:09 -05:00
boltdb_state_linux.go Log an otherwise ignored error from joining a net ns 2018-10-11 11:29:42 -04:00
boltdb_state_unsupported.go Fix build on non-linux platforms 2018-07-31 14:19:50 +00:00
common_test.go Remove one more usage of encoding/json in libpod 2019-01-10 15:48:09 -05:00
container.go Do not unmarshal into c.config.Spec 2019-01-18 10:27:51 -05:00
container_api.go Add darwin support for remote-client 2019-01-11 11:30:28 -06:00
container_attach_linux.go Add darwin support for remote-client 2019-01-11 11:30:28 -06:00
container_attach_unsupported.go Add darwin support for remote-client 2019-01-11 11:30:28 -06:00
container_commit.go Use sprintf to generate port numbers while committing 2019-01-02 10:26:44 -05:00
container_graph.go Remove a loop in container graph 2018-03-29 02:18:45 +00:00
container_graph_test.go Update unit tests to use in-memory lock manager 2019-01-04 09:51:09 -05:00
container_inspect.go apparmor: apply default profile at container initialization 2019-01-09 22:18:11 +01:00
container_internal.go Ensure that wait exits on state transition 2019-01-16 10:33:01 -05:00
container_internal_linux.go Merge pull request #2138 from giuseppe/rootless-pod-fix 2019-01-11 15:42:21 -08:00
container_internal_test.go Rename libpod.Config back to ContainerConfig 2019-01-07 14:37:51 -05:00
container_internal_unsupported.go Fix build on non-Linux 2018-12-06 23:31:54 +01:00
container_linux.go Do not fetch pod and ctr State on retrieval in Bolt 2018-07-31 14:19:50 +00:00
container_top_linux.go vendor latest containers/psgo 2018-07-26 17:01:40 +00:00
container_top_unsupported.go podman-top: use containers/psgo 2018-07-19 20:47:52 +00:00
container_unsupported.go Do not fetch pod and ctr State on retrieval in Bolt 2018-07-31 14:19:50 +00:00
diff.go Don't output inodes created to run a container 2018-09-21 09:45:14 +00:00
errors.go Add "podman volume" command 2018-12-06 10:17:16 +00:00
in_memory_state.go Add "podman volume" command 2018-12-06 10:17:16 +00:00
info.go libpod: allow multiple oci runtimes 2019-01-14 10:03:40 +01:00
kube.go Add Play 2018-12-19 14:20:55 -06:00
mounts_linux.go set root propagation based on volume properties 2018-11-26 13:55:02 +01:00
networking_linux.go Use existing interface to request IP address during restore 2019-01-09 07:34:57 +01:00
networking_unsupported.go switch projectatomic to containers 2018-08-16 17:12:36 +00:00
oci.go libpod: allow multiple oci runtimes 2019-01-14 10:03:40 +01:00
oci_linux.go Use also a struct to pass options to Restore() 2018-11-28 08:00:37 +01:00
oci_unsupported.go Use also a struct to pass options to Restore() 2018-11-28 08:00:37 +01:00
options.go oci: allow to define multiple OCI runtimes 2019-01-14 10:22:18 +01:00
pod.go Convert pods to SHM locks 2019-01-04 09:51:09 -05:00
pod_api.go add timeout to pod stop 2018-12-07 10:27:41 -06:00
pod_internal.go Remove runtime lockDir and add in-memory lock manager 2019-01-04 09:51:09 -05:00
pod_top_linux.go Add podman pod top 2018-08-23 15:01:17 +00:00
pod_top_unsupported.go Add podman pod top 2018-08-23 15:01:17 +00:00
runtime.go oci: allow to define multiple OCI runtimes 2019-01-14 10:22:18 +01:00
runtime_ctr.go config: store the runtime used to create each container 2019-01-14 10:22:18 +01:00
runtime_img.go Remove some unused data structures and code 2018-12-06 23:31:54 +01:00
runtime_img_test.go switch projectatomic to containers 2018-08-16 17:12:36 +00:00
runtime_pod.go Fixing network ns segfault 2018-08-23 18:16:28 +00:00
runtime_pod_infra_linux.go Remove the forceSecure parameter on the pull call stack 2018-12-06 23:34:59 +01:00
runtime_pod_linux.go Remove runtime lockDir and add in-memory lock manager 2019-01-04 09:51:09 -05:00
runtime_pod_unsupported.go Added option to share kernel namespaces in libpod and podman 2018-08-23 18:16:28 +00:00
runtime_volume.go Add "podman volume" command 2018-12-06 10:17:16 +00:00
runtime_volume_linux.go Remove runtime lockDir and add in-memory lock manager 2019-01-04 09:51:09 -05:00
runtime_volume_unsupported.go Add darwin support for remote-client 2019-01-11 11:30:28 -06:00
state.go Add "podman volume" command 2018-12-06 10:17:16 +00:00
state_test.go Rename libpod.Config back to ContainerConfig 2019-01-07 14:37:51 -05:00
stats.go Add ability for ubuntu to be tested 2018-10-03 12:45:37 -05:00
stats_config.go changes to allow for darwin compilation 2018-06-29 20:44:09 +00:00
stats_unsupported.go changes to allow for darwin compilation 2018-06-29 20:44:09 +00:00
storage.go Move all libpod/ JSON references over to jsoniter 2019-01-10 15:48:09 -05:00
util.go Fix build on non-Linux 2018-12-06 23:31:54 +01:00
util_linux.go Fix build on non-Linux 2018-12-06 23:31:54 +01:00
util_test.go Stage3 Image Library 2018-03-14 20:21:31 +00:00
util_unsupported.go Fix build on non-Linux OSes 2018-08-15 18:07:04 +00:00
version.go Fix setting of version information 2018-10-31 00:27:08 +01:00
volume.go Remove runtime lockDir and add in-memory lock manager 2019-01-04 09:51:09 -05:00
volume_internal.go Add "podman volume" command 2018-12-06 10:17:16 +00:00