mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-17 22:46:29 +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:872d2e1be745f1acb948762562cf31c367303a3b
|
|
- linuxkit/runc:6062483d748609d505f2bcde4e52ee64a3329f5f
|
|
- linuxkit/containerd:39301e7312f13eedf19bd5d5551af7b37001d435
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:e9e3580f2de00e73e7b316a007186d22fea056ee
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:5d86a2ce2d890c14ab66b13638dcadf74f29218b
|
|
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
|