Skip to content

Instantly share code, notes, and snippets.

@ibuildthecloud
Last active July 10, 2016 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibuildthecloud/e9e0a3a37c1d20814b08daab7d01231b to your computer and use it in GitHub Desktop.
Save ibuildthecloud/e9e0a3a37c1d20814b08daab7d01231b to your computer and use it in GitHub Desktop.
Runv on RancherOS v0.5.0

Switch to ubuntu console

sudo ros console switch -f ubuntu

Install packages to build to runv

sudo apt-get update
sudo apt-get install -y git cpio autoconf automake pkg-config make gcc golang qemu

Build runv

sudo -s
export GOPATH=/usr/local/go
go get -d github.com/hyperhq/runv
cd $GOPATH/src/github.com/hyperhq/runv
./autogen.sh
./configure --without-xen
make install

Build images

sudo -s
cd /opt
git clone https://github.com/hyperhq/hyperstart
cd hyperstart
./autogen.sh
./configure
make

Stop User Docker

sudo ros service stop docker

Start runv-containerd

sudo runv-containerd --debug --driver qemu --kernel /opt/hyperstart/build/kernel --initrd /opt/hyperstart/build/hyper-initrd.img &

Start docker

sudo docker daemon -D -l debug --containerd=/run/runv-containerd/containerd.sock &
```

Run container

```sh
docker run -it busybox
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment