Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Documentation: Add details on running standalone cc-oci-runtime #239

Open
mcastelino opened this issue Sep 8, 2016 · 1 comment
Open

Comments

@mcastelino
Copy link
Contributor

Tested on Ubuntu 16.04

https://github.com/opencontainers/runc#creating-an-oci-bundle

  • Create the rootfs for the bundle
mkdir $HOME/mycontainer
cd $HOME/mycontainer
sudo docker pull busybox
sudo docker export $(sudo docker create busybox) | tar -C rootfs -xvf -
  • Create the spec file config.json for the 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.

  • Start the container
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"
@jodh-intel
Copy link
Contributor

#272, which fixes #265, will now auto-create a bundle (with a few caveats).

@egernst egernst added the CC 2.1 label Jul 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants