Files
linuxkit/examples/redis-os.yml
Rolf Neugebauer d96cb710c2 Add console=ttyAMA0 to selected YAML files
On arm64 the serial console is a ttyAMA0. Non-existing
consoles are ignored, so this should work on x86 and arm64.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-08-04 15:48:45 +01:00

33 lines
912 B
YAML

# Minimal YAML to run a redis server (used at DockerCon'17)
# connect: nc localhost 6379
kernel:
image: linuxkit/kernel:4.9.40
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:906e174b3f2e07f97d6fd693a2e8518e98dafa58
- linuxkit/runc:90e45f13e1d0a0983f36ef854621e3eac91cf541
- linuxkit/containerd:7c986fb7df33bea73b5c8097b46989e46f49d875
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:f3f5413abb78fae9020e35bd4788fa93df4530b7
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:2c841cdc34396e3fa8f25b62d112808f63f16df6
env:
- INSECURE=true
- name: redis
image: redis:3.0.7-alpine
capabilities:
- CAP_NET_BIND_SERVICE
- CAP_CHOWN
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
net: host
trust:
org:
- linuxkit
image:
- redis:3.0.7-alpine