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
- 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