mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-30 00:39:46 +00:00
30 lines
997 B
YAML
30 lines
997 B
YAML
# Minimal YAML to run a redis server (used at DockerCon'17)
|
|
# connect: nc localhost 6379
|
|
kernel:
|
|
image: linuxkit/kernel:6.6.13
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
|
init:
|
|
- linuxkit/init:30e04e810c9d3d54ab1eb6c2d9407a09d4f2709a
|
|
- linuxkit/runc:8b5af3365fc7d015db4e44113d93c7b1f8e2d2ab
|
|
- linuxkit/containerd:8072efcee7c1d77a6b41093ae610062552e354fb
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:f46134c05f9665d8865a9fbebd5be0995057af28
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:70237b8ac2006b0177026520e7720fc574339298
|
|
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
|