Skip to content

Instantly share code, notes, and snippets.

@vbatts
Created August 13, 2020 21:48
Show Gist options
  • Save vbatts/2990a79ab9e179a94b768bedc042b80e to your computer and use it in GitHub Desktop.
Save vbatts/2990a79ab9e179a94b768bedc042b80e to your computer and use it in GitHub Desktop.
cloud-config for crun+docker on flatcar
#cloud-config
coreos:
units:
- name: docker.service
command: start
drop-ins:
- name: 50-crun-runtime.conf
content: |
[Service]
Environment=DOCKER_OPTS='--add-runtime crun=/opt/bin/crun --default-runtime=crun'
- name: crun-fetch.service
command: start
content: |
[Unit]
Description=fetch crun binary
Before=docker.service
[Service]
Type=oneshot
ExecStart=/usr/bin/mkdir -p /opt/bin
ExecStart=/usr/bin/curl -sSL -o /opt/bin/crun https://github.com/containers/crun/releases/download/0.14.1/crun-0.14.1-static-x86_64
ExecStart=/usr/bin/chmod +x /opt/bin/crun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment