Skip to content

beersonthewall/container-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A container runtime

Learning how 2 container.

Testing

The steps:

  • Create an OCI Bundle
  • Run commands against that bundle

How To Create an OCI Bundle

mkdir <img-name>
mkdir <img-name>/rootfs
docker pull <img-name>
docker create --name tmp<img-name> <img-name>
docker export tmp<img-name> | tar -C <img-name>/rootfs -xf -
docker rm tmp<img-name>
cd <img-name>
runc spec

This will leave you with a root filesystem and a config.json in the directory.

Container Runtime CLI Usage

container_runtime create <container-id> ./path-to-bundle
container_runtime start <container-id>
container_runtime kill <container-id> <signal>
container_runtime delete <container-id>
container_runtime state <container-id>

Note: Certain operations require root

About

Learning how 2 container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages