summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/state/state.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2021-10-11 14:27:41 -0700
committergVisor bot <gvisor-bot@google.com>2021-10-11 14:30:14 -0700
commitb9176535cea01e35f819edf312d0f5e7da3e8ffd (patch)
treef1329ec66dbe3aff7262fcfbe14de357d152b175 /pkg/sentry/state/state.go
parent125fae59beb2a054061fab4cc300994b753e127a (diff)
Create subcontainer cgroups for compatibility
Tools (e.g. cAdvisor) watches for changes inside /sys/fs/cgroup to detect when containers are created and deleted. With gVisor, container cgroups were not created because the containers are not visible to the host. This change enables the creation of [empty] subcontainer cgroups that can be used by tools to detect creation/deletion of subcontainers. This change required a new annotation to be added so that the shim can communicate the pod cgroup path to runsc, so pod and container cgroups can be identified, Fixes #6500 PiperOrigin-RevId: 402392291
Diffstat (limited to 'pkg/sentry/state/state.go')
0 files changed, 0 insertions, 0 deletions