mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 15:17:45 +00:00
30 lines
998 B
YAML
30 lines
998 B
YAML
# Minimal YAML to run a redis server (used at DockerCon'17)
|
|
# connect: nc localhost 6379
|
|
kernel:
|
|
image: linuxkit/kernel:5.10.76
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
|
init:
|
|
- linuxkit/init:eb597ef74d808b5320ad1060b1620a6ac31e7ced
|
|
- linuxkit/runc:21dbbda709ae138de0af6b0c7e4ae49525db5e88
|
|
- linuxkit/containerd:2f0907913dd54ab5186006034eb224a0da12443e
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:52d2c4df0311b182e99241cdc382ff726755c450
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec
|
|
env:
|
|
- INSECURE=true
|
|
# Currently redis:4.0.6-alpine has trust issue with multi-arch
|
|
# https://github.com/docker-library/official-images/issues/3794
|
|
- name: redis
|
|
image: redis:4.0.5-alpine
|
|
capabilities:
|
|
- CAP_NET_BIND_SERVICE
|
|
- CAP_CHOWN
|
|
- CAP_SETUID
|
|
- CAP_SETGID
|
|
- CAP_DAC_OVERRIDE
|
|
net: host
|