Files
linuxkit/blueprints/docker-for-mac/base.yml
Magnus Skjegstad fcf12d9f5a dfm blueprint: use same port as DfM
Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
2017-06-30 16:03:20 +02:00

67 lines
2.7 KiB
YAML

# This is a blueprint for building the open source components of Docker for Mac
kernel:
image: "linuxkit/kernel:4.9.34"
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/init:36c56f0664d49c5a6adc1120d1bf5ba6ac30b389
- linuxkit/runc:291131ec026430371e7c36165c3f43734fbc2541
- linuxkit/containerd:1e3e8f207421de8deac8cedc26a138d6b1661a0d
onboot:
- name: sysctl
image: "linuxkit/sysctl:3aa6bc663c2849ef239be7d941d3eaf3e6fcc018"
- name: sysfs
image: "linuxkit/sysfs:b4091d81261f4582ff899a8510110fc4f2be2b49"
- name: binfmt
image: "linuxkit/binfmt:24e2b996f7d6ad20bfa9c9f1564a3c6172db47ce"
# Format and mount the disk image in /var/lib/docker
- name: format
image: "linuxkit/format:ba085fdcac31c383acee3b4b91d78eb7095e5ac3"
- name: mount
image: "linuxkit/mount:fe22dc5cbf109b4637b1caaafc76ccbf5140c3da"
command: ["/mount.sh", "/var/lib/docker"]
# mount-vpnkit mounts the 9p share used by vpnkit to coordinate port forwarding
- name: mount-vpnkit
image: "alpine:3.6"
binds:
- /var/:/host_var:rbind,rshared
capabilities:
- CAP_SYS_ADMIN
rootfsPropagation: shared
command: ["sh", "-c", "mkdir -p /host_var/vpnkit/port && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
- name: dhcpcd
image: "linuxkit/dhcpcd:6c1ca76dbf808d5c27d10cbf22a8d4399be5c8ae"
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
# Enable getty for easier debugging
- name: getty
image: "linuxkit/getty:6d35e3fe138aaeaf099b5b4f31b3f12ba725cb49"
env:
- INSECURE=true
- name: rngd
image: "linuxkit/rngd:b50b22dd574c5377708977af769f053009fff6d5"
# Run ntpd to keep time synchronised in the VM
- name: ntpd
image: "linuxkit/openntpd:a4c642d52e985922fcd97db52e471db123cc6841"
# VSOCK to unix domain socket forwarding. Forwards guest /var/run/docker.sock
# to a socket on the host.
- name: vsudd
image: "linuxkit/vsudd:9e5882b4450a97836e113bcad231f497aa7bdba4"
binds:
- /var/run:/var/run
command: ["/vsudd", "-inport", "2376:unix:/var/run/docker.sock"]
# vpnkit-forwarder forwards network traffic to/from the host via VSOCK port 62373.
# It needs access to the vpnkit 9P coordination share
- name: vpnkit-forwarder
image: "linuxkit/vpnkit-forwarder:e2776b82ddfe82ed7f90e55d7a2b424e62e9a279"
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder", "-vsockPort", "62373"]
# Monitor for image deletes and invoke a TRIM on the container filesystem
- name: trim-after-delete
image: "linuxkit/trim-after-delete:6cc6131300c287fcd40041a28119fee2fc874539"
trust:
org:
- linuxkit