Beginner’s Guide to runC

Murat Kilic
2 min readMay 16, 2019

--

runC is a CLI tool for spawning and running containers according to the OCI specification. It was released by Docker container platform in 2015 as part of spinning out plumbing components. As expressed by the announcement:

runC is a lightweight, portable container runtime. It includes all of the plumbing code used by Docker to interact with system features related to containers. It is designed with the following principles in mind:

  • Designed for security.
    • Usable at large scale, in production, today.
    • No dependency on the rest of the Docker platform: just the container runtime and nothing else.

And the goal was stated as : “ The goal of runC is to make standard containers available everywhere

Primary features of runC are:

  • Linux namespaces full support
  • Native support of Linux security features such as Selinux, Apparmor
  • Specifications governed by Open Container Initiative — part of Linux Foundation.

As part of my experience with runC, I have done quite a few exercises and I will share a few of them as part of this series. The setup is on CentOS 7 running on AWS infrastructure.

  1. Quick start to runC with Tomcat container
  2. Simple rootless containers with runC on Centos & Redhat
  3. Managing runC containers
  4. Network Setup With runC Containers
  5. runC and Docker Together
  6. runC Terminal and Run Modes

Happy containerizing…

--

--

Murat Kilic
Murat Kilic

Written by Murat Kilic

Tech enthusiast and leader. Love inspiring people to follow their dreams in tech. Coded all the way from BASIC to Go.

No responses yet