mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 23:35:49 +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:6.12.52
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
|
init:
|
|
- linuxkit/init:b5506cc74a6812dc40982cacfd2f4328f8a4b12a
|
|
- linuxkit/runc:3c079dfa25a05653db203c2abfb329c4e08ba6f9
|
|
- linuxkit/containerd:ba19f64efd3331a8fd0a33e00eabd14f6ee1780e
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:b87e9ececac55a65eaa592f4dd8b4e0c3009afdb
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:a86d74c8f89be8956330c3b115b0b1f2e09ef6e0
|
|
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
|