# running container in runc https://povilasv.me/how-to-monitor-containerd/ ## create a container docker run --name cont1 alpine:latest sh ## export it's rootfs to use it as our base docker export cont1 > rootfs.tar ## extract it to a folder mkdir -p ./rootfs tar -xf rootfs.tar -C ./rootfs ## generate runc spec ``` # this will create config.json runc spec # Change the spec args to # "args": [ # "sh", "-c", "sleep 10000 && echo \"Hello, World!\"" # ], ``` ## run the container sudo runc run cont1 ## [crun](https://github.com/containers/crun) ``` hychang@hychang-MS-7A40:~$ podman --runtime /usr/bin/runc run --rm --memory 1M debian:bookworm-slim echo it works Error: OCI runtime error: runc create failed: unable to start container process: container init was OOM-killed (memory limit too low?) hychang@hychang-MS-7A40:~$ podman --runtime /usr/bin/crun run --rm --memory 1M debian:bookworm-slim echo it works it works ``` ## [OCI Runtime Specification](https://github.com/opencontainers/runtime-spec) https://opencontainers.org/