runc
, skopeo
and umoci
.
make all
and be prepared to enter your password.
Run
runc run test
as root and you'll be dropped into a busybox shell with a minimal filesystem.
.PHONY: all | |
all: config.json rootfs | |
config.json: | |
sudo runc spec | |
busybox: | |
skopeo copy docker://busybox:latest oci:busybox:latest | |
bundle: busybox | |
sudo umoci unpack --image busybox:latest bundle | |
rootfs: bundle | |
sudo cp -r bundle/rootfs . | |
.PHONY: clean | |
clean: | |
rm -r busybox | |
sudo rm -r rootfs | |
sudo rm -r bundle | |
sudo rm config.json |