mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 17:50:14 +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:c9a1adb982eb4074c01a34ce43860b6df24c252d
|
|
- linuxkit/runc:bcd6268ea2d45dc7c6b43ca82d00dd01e7105f17
|
|
- linuxkit/containerd:d33b20080a2f88e833680dc8563b5a03a13a297e
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:c1f461bd40fabb1f3bb77348ab52abad8393bdb3
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:42bfdda2fef25c9fd84a58bb88de1496a7cafcda
|
|
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
|