mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-03 05:12:02 +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.47
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
|
init:
|
|
- linuxkit/init:78fb57c7da07c4e43c3a37b27755581da087a3b6
|
|
- linuxkit/runc:f9c8a136f6aca1cde95b249eb5095df702c23ac8
|
|
- linuxkit/containerd:1c4d860d198095565baa3d8d60d434f034f0fef0
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:1033f340e2d42f86a60aab70752346f0045ea388
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:ebe3397aa9b08e8f310121fdb0aac9406e1c8e73
|
|
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
|