Created
August 13, 2020 21:48
-
-
Save vbatts/2990a79ab9e179a94b768bedc042b80e to your computer and use it in GitHub Desktop.
cloud-config for crun+docker on flatcar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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