mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-26 16:52:48 +00:00
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
# example with volumes, both blank and populated
|
|
kernel:
|
|
image: linuxkit/kernel:6.12.52
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:962b1eb0f6fd0b3e072be3bf555a10c9c831f53d
|
|
- linuxkit/runc:4ae6608b906fa1f428cfcb55686a8452e98e8a27
|
|
- linuxkit/containerd:c4e7bb44ddf46365abc4f4b5fa77901bdd73321c
|
|
- linuxkit/ca-certificates:6d74d50cfbb09d3c322b0899bb45ebefa1ac20ff
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:237cbcc272f357fe1d479847a42d0640d0a48871
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:700b2f53f2133f9dd3896b86e7ef7e22e459fefc
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
onshutdown:
|
|
- name: shutdown
|
|
image: busybox:latest
|
|
command: ["/bin/echo", "so long and thanks for all the fish"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:239bff4bbe8b98b1a88f887e567345e4943438c5
|
|
env:
|
|
- INSECURE=true
|
|
- name: rngd
|
|
image: linuxkit/rngd:ee7893507f35876b28098a41dace4f55f7e324ac
|
|
- name: nginx
|
|
image: nginx:1.19.5-alpine
|
|
capabilities:
|
|
- CAP_NET_BIND_SERVICE
|
|
- CAP_CHOWN
|
|
- CAP_SETUID
|
|
- CAP_SETGID
|
|
- CAP_DAC_OVERRIDE
|
|
binds:
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
|
files:
|
|
- path: etc/linuxkit-config
|
|
metadata: yaml
|
|
- path: /etc/containerd/runtime-config.toml
|
|
source: "containerd-debug-runtime-config.toml" # must include the file runtime-config.toml in this directory
|
|
mode: "0644"
|