Runc: Difference between revisions
Prabuanand (talk | contribs) (added category and link to) |
Prabuanand (talk | contribs) (added DISPLAYTITLE as runc) |
||
Line 1: | Line 1: | ||
[https://github.com/opencontainers/runc | {{DISPLAYTITLE:runc}}[https://github.com/opencontainers/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 == | == Prerequisites == |
Revision as of 15:57, 4 July 2025
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
- Enable cgroups
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