gVisor
gVisor is a user-space kernel that serves a workload's system calls itself, so that only a narrow, filtered set of calls reaches the host kernel.
gVisor is an open-source project, originally developed at Google, that sits between a workload and the host kernel. It reimplements much of the Linux system call interface in a user-space process. That process handles the system calls of the workload. The workload therefore never talks to the host kernel directly.
gVisor exists to reduce the part of the host kernel that untrusted code can reach. A bug in the kernel is a common way to escape a container. With gVisor, only a small, filtered set of calls from gVisor itself reaches the host. This makes such escapes harder, at the cost of some speed for workloads that make many system calls.
gVisor provides a container runtime called runsc that can replace runc. Tools such as Docker and Kubernetes can then start containers under gVisor without other changes. It sits between plain containers, which share the host kernel, and virtual machines, which run their own kernel. Sandbox platforms use it when they need stronger isolation than a container without the cost of a full virtual machine.
Related terms