Runc

From Alpine Linux
Revision as of 15:36, 4 July 2025 by Prabuanand (talk | contribs) (based on posting in https://irclogs.alpinelinux.org/%23alpine-linux-2025-07.log by user Donno at https://tpaste.us/gbvy)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Prabuanand on 4 Jul 2025.)

Set up a minimal container

# 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

# cd /opt/busybox-container

# runc run busybox-1