Open mcastelino opened 8 years ago
Tested on Ubuntu 16.04
https://github.com/opencontainers/runc#creating-an-oci-bundle
mkdir $HOME/mycontainer cd $HOME/mycontainer sudo docker pull busybox sudo docker export $(sudo docker create busybox) | tar -C rootfs -xvf -
runc spec
Note: You may need to build runc https://github.com/opencontainers/runc#building if you do not have it on your system.
name=foo pidfile=/tmp/cor.pid logfile=/tmp/cor.log bundle_dir=$HOME/mycontainer/ sudo cc-oci-runtime -d --log "$logfile" --log-format json create --bundle "$bundle_dir" --console $(tty) --pid-file "$pidfile" "$name" sudo cc-oci-runtime --log "$logfile" --log-format json start "$name"
Tested on Ubuntu 16.04
https://github.com/opencontainers/runc#creating-an-oci-bundle
runc spec
Note: You may need to build runc https://github.com/opencontainers/runc#building if you do not have it on your system.