Skip to content

Instantly share code, notes, and snippets.

{"jekyll":"3.2.1","jekyll-sass-converter":"1.3.0","minima":"1.0.1","kramdown":"1.11.1","liquid":"3.0.6","json":"1.8.3","rouge":"1.11.1","github-pages-health-check":"1.2.0","jemoji":"0.7.0","jekyll-mentions":"1.1.3","jekyll-redirect-from":"0.11.0","jekyll-sitemap":"0.10.0","jekyll-feed":"0.5.1","jekyll-gist":"1.4.0","jekyll-paginate":"1.1.0","jekyll-coffeescript":"1.0.1","jekyll-seo-tag":"2.0.0","jekyll-github-metadata":"2.0.2","listen":"3.0.6","activesupport":"4.2.7","ruby":"2.1.7","github-pages":"93","html-pipeline":"2.4.2","sass":"3.4.22","safe_yaml":"1.0.4"}
#cloud-config
rancher:
debug: true
aa:
image: alpine
command: sleep 10000
bb:
image: alpine
command: sleep 10000
#cloud-config
rancher:
restart: [ntp]
write_files:
- path: "/etc/ntp.conf"
container: ntp
permissions: "0644"
owner: "root"
content: |
server 0.pool.ntp.org iburst

These instructions explain how to run runv-docker as a system service. The first step is to produce the necessary build artifacts for the system servivce.

We can perform this build process in a RancherOS Ubuntu console. First, switch to the Ubuntu console.

sudo ros console switch -f ubuntu

Install a few packages necessary for building.

runv-docker:
image: joshwget/runv
labels:
io.rancher.os.scope: system
io.rancher.os.after: docker
net: host
uts: host
pid: host
ipc: host
privileged: true
runv:
image: joshwget/runv
labels:
io.rancher.os.after: docker
io.rancher.os.scope: system
privileged: true
net: host
uts: host
pid: host
ipc: host
runv:
image: joshwget/runv
labels:
io.rancher.os.after: docker
io.rancher.os.scope: system
privileged: true
volumes:
- /usr/bin/docker:/usr/bin/docker
- /var/run/runv-docker:/var/run/runv-docker
runv:
image: joshwget/runv
labels:
io.rancher.os.after: docker
io.rancher.os.scope: system
privileged: true
volumes_from:
- command-volumes
- user-volumes
runv:
image: joshwget/runv
labels:
io.rancher.os.after: docker
io.rancher.os.scope: system
volumes_from:
- command-volumes
- user-volumes