When working with containers, you have likely come across the terms "runc" and "runsc." But have you ever wondered what the difference is, given their similar names?
Both are "runtimes" for running containers, but there are significant differences in security and performance. While you might be using them without much thought, there is actually a way to choose the right one based on your use case.
In this article, we will break down their features and differences as simply as possible.
What is runc?

runc is the standard container runtime used by Docker and Kubernetes. It leverages Linux namespaces and cgroups to run lightweight containers on a host machine.
Think of it like "roommates sharing the same house." Even though each room (container) is independent, they all share the same house (host kernel). As a result, one has the disadvantage of being easily affected by others.
Features of runcLightweight and fast: Low overhead because it uses the host kernel directly
Standard OCI container runtime: Highly compatible with Docker and Kubernetes
Slightly less secure: Because it shares the host kernel, it is more susceptible to vulnerabilities
When to use it: Environments requiring high-speed processing, general container operations
What is runsc?
runsc uses a sandboxed container runtime developed by Google called gVisor.
This is like "having complete soundproofing and fireproofing in every room of an apartment, rather than sharing a house." Each container has its own "virtual kernel" and does not interact directly with the host kernel.
Because of this, while security is extremely high, it has the disadvantage of taking more time to process.
Features of runscStrong security: Processes system calls through its own mechanism, minimizing contact with the host kernel
Isolation comparable to virtual machines: Prevents interference between containers
Lower performance: Slower than runc, especially in I/O-intensive operations
When to use it: Multi-tenant environments or security-focused operations handling sensitive data
What are the differences between runc and runsc?
Relationship with the host
runc shares the host kernel directly, while runsc uses a virtual kernel for isolation.Security strength
runc is more susceptible to vulnerabilities because it uses the host kernel, whereas runsc is less prone to attacks because it handles system calls independently.Performance differences
runc is fast with low overhead, but runsc can be slower in I/O and system call processing due to the separation of tasks.Suitable use cases
runc is suitable for general container operations, while runsc is appropriate for multi-tenant environments or environments where security is a priority.
So, which one should you choose?
✅ When to choose runc
When high-speed container execution is required
When using standard Docker or Kubernetes workflows
When you can accept security risks
✅ When to choose runsc
When you want to prevent interference from other users in a multi-tenant environment
For workloads handling sensitive data, such as in finance or healthcare
When you want to prioritize safety over some performance loss
Summary
Choose runc for performance
Choose runsc for security
Choose the appropriate container runtime for your needs!