containerd/pkg/server
Ian Campbell 0161764ef5 Always use a writeable snapshot as the rootfs.
This will be made readonly by runc based on spec.Root.Readonly (which we
already set correctly) but defering until then gives runc the chance to make
any missing mount points as it processes the spec.Mount array.

This is necessary because many container images lack mount points for things
like the /etc/hosts which we want to overbind. This is not noticed with e.g.
Docker because it automatically creates an additional layer containing those.
This is something we may want to do here as well eventually but for now using a
writeable snapshot is both necessary and sufficient.

The same does not apply to the sandbox since we never modify its rootfs or want
to mount anything in it etc, add a comment to clarify.

Fixes #220.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-09-06 22:20:14 +01:00
..
io Fix fifo files leakage. 2017-08-28 21:14:35 +00:00
testing Import ocicni update from https://github.com/Random-Liu/ocicni 2017-08-23 01:25:12 +00:00
container_attach.go Add container attach support. 2017-08-23 23:48:31 +00:00
container_create_test.go Support selinux options/label 2017-08-31 19:20:12 +08:00
container_create.go Always use a writeable snapshot as the rootfs. 2017-09-06 22:20:14 +01:00
container_exec.go Add instrumented service. 2017-08-23 07:02:12 +00:00
container_execsync.go Merge pull request #151 from Random-Liu/add-instrumented-service 2017-08-24 11:26:39 -07:00
container_list_test.go Use new metadata store. 2017-07-28 23:35:31 +00:00
container_list.go Add instrumented service. 2017-08-23 07:02:12 +00:00
container_remove_test.go Temporarily remove unit test relying on fake containerd services. 2017-07-31 22:42:10 +00:00
container_remove.go Add instrumented service. 2017-08-23 07:02:12 +00:00
container_start.go Revert "Setting containerd shim cgroup same as pod cgroup" 2017-09-02 04:20:55 +00:00
container_stats_list.go Update CRI to d779e9c9561b732adf06263c5424889e7564fdbd. 2017-06-21 01:56:13 +00:00
container_stats.go Update CRI to d779e9c9561b732adf06263c5424889e7564fdbd. 2017-06-21 01:56:13 +00:00
container_status_test.go Return image repo digest in container status. 2017-09-01 20:58:15 +00:00
container_status.go Return image repo digest in container status. 2017-09-01 20:58:15 +00:00
container_stop_test.go Temporarily remove unit test relying on fake containerd services. 2017-07-31 22:42:10 +00:00
container_stop.go Fix fifo files leakage. 2017-08-28 21:14:35 +00:00
container_update_resources_test.go Implement container resources update 2017-08-22 18:40:30 +00:00
container_update_resources.go Add instrumented service. 2017-08-23 07:02:12 +00:00
events.go Let cri-containerd exit with containerd 2017-09-01 23:14:04 +00:00
helpers_selinux_test.go Support selinux options/label 2017-08-31 19:20:12 +08:00
helpers_test.go Add container attach support. 2017-08-23 23:48:31 +00:00
helpers.go Make sandbox container image configurable 2017-09-03 02:53:17 -04:00
image_list_test.go Use new metadata store. 2017-07-28 23:35:31 +00:00
image_list.go Add instrumented service. 2017-08-23 07:02:12 +00:00
image_pull_test.go Containerd client integration 2017-08-16 14:43:22 -07:00
image_pull.go Fix repo digest for schema 1 image. 2017-09-01 07:18:02 +00:00
image_remove.go Do not remove out dated image tag. 2017-09-01 07:09:13 +00:00
image_status_test.go Use new metadata store. 2017-07-28 23:35:31 +00:00
image_status.go Add instrumented service. 2017-08-23 07:02:12 +00:00
imagefs_info.go Update CRI to d779e9c9561b732adf06263c5424889e7564fdbd. 2017-06-21 01:56:13 +00:00
instrumented_service.go Add instrumented service. 2017-08-23 07:02:12 +00:00
sandbox_list_test.go Get CreatedAt from containerd instead of maintaining it ourselves. 2017-08-24 18:38:00 +00:00
sandbox_list.go Get CreatedAt from containerd instead of maintaining it ourselves. 2017-08-24 18:38:00 +00:00
sandbox_portforward.go Do not checkpoint sandbox pid. 2017-08-25 01:38:05 +00:00
sandbox_remove.go Merge pull request #151 from Random-Liu/add-instrumented-service 2017-08-24 11:26:39 -07:00
sandbox_run_test.go Use containerd WithUserID. 2017-08-25 21:11:56 +00:00
sandbox_run.go Always use a writeable snapshot as the rootfs. 2017-09-06 22:20:14 +01:00
sandbox_status_test.go Get CreatedAt from containerd instead of maintaining it ourselves. 2017-08-24 18:38:00 +00:00
sandbox_status.go Get CreatedAt from containerd instead of maintaining it ourselves. 2017-08-24 18:38:00 +00:00
sandbox_stop.go Do not teardown when network namespace is removed already. 2017-08-28 05:10:30 +00:00
service_test.go Add container attach support. 2017-08-23 23:48:31 +00:00
service.go Make sandbox container image configurable 2017-09-03 02:53:17 -04:00
status.go Add instrumented service. 2017-08-23 07:02:12 +00:00
streaming.go Add container attach support. 2017-08-23 23:48:31 +00:00
update_runtime_config.go Update CRI to d779e9c9561b732adf06263c5424889e7564fdbd. 2017-06-21 01:56:13 +00:00
version.go Add instrumented service. 2017-08-23 07:02:12 +00:00