runc

From Alpine Linux
Revision as of 15:57, 4 July 2025 by Prabuanand (talk | contribs) (added DISPLAYTITLE as runc)

runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. This page provides instructions to setup containers using runc.

Prerequisites

Set up a minimal container

Here are the steps to create a minimal container using runc and Alpine Linux.

# apk add runc

# mkdir /opt/busybox-container

# apk --arch x86_64 -X https://dl-cdn.alpinelinux.org/alpine/edge/main/ --root /opt/busybox-container/rootfs --initdb --no-cache --allow-untrusted add busybox

# cd /opt/busybox-container && runc spec

# runc run busybox-1

See also