Files
linuxkit/blueprints/docker-for-mac/base.yml
Rolf Neugebauer 561c204de6 Merge pull request #2167 from rn/kern-up
Update kernel to 4.11.9/4.9.36/4.4.76
2017-07-07 19:48:24 +01:00

77 lines
3.2 KiB
YAML

# This is a blueprint for building the open source components of Docker for Mac
kernel:
image: "linuxkit/kernel:4.9.36"
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/vpnkit-expose-port:e2b49a6c56fbf876ea24f0a5ce4ccae5f940d1be # install vpnkit-expose-port and vpnkit-iptables-wrapper on host
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
onboot:
# support metadata for optional config in /var/config
- name: metadata
image: "linuxkit/metadata:f122f1b4e873f1d08cd67bd9105385fd923af0cb"
- name: sysctl
image: "linuxkit/sysctl:d1a43c7c91e92374766f962dc8534cf9508756b0"
- name: sysfs
image: "linuxkit/sysfs:006a65b30cfdd9d751d7ab042fde7eca2c3bc9dc"
- name: binfmt
image: "linuxkit/binfmt:0bde4ebd422099f45c5ee03217413523ad2223e5"
# Format and mount the disk image in /var/lib/docker
- name: format
image: "linuxkit/format:84a997e69051a1bf05b7c1926ab785bb07932954"
- name: mount
image: "linuxkit/mount:b24bd97ae43397b469dbaadd80f17f291c817bdf"
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:4b7b8bb024cebb1bbb9c8026d44d7cbc8e202c41"
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
# Enable acpi to shutdown on power events
- name: acpid
image: linuxkit/acpid:1966310cb75e28ffc668863a6577ee991327f918
# Enable getty for easier debugging
- name: getty
image: "linuxkit/getty:5ab31289889d61a5d2ecbeea8e36ce74ac54737c"
env:
- INSECURE=true
- name: rngd
image: "linuxkit/rngd:1516d5d70683a5d925fe475eb1b6164a2f67ac3b"
# Run ntpd to keep time synchronised in the VM
- name: ntpd
image: "linuxkit/openntpd:19370f5d9bec84eb91073b7196b732f1301d9c90"
# VSOCK to unix domain socket forwarding. Forwards guest /var/run/docker.sock
# to a socket on the host.
- name: vsudd
image: "linuxkit/vsudd:adad4b6ab7529b6b95339eb0752b0c81a218d185"
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:9c1545e7b093d1210118de7661d7346393ec195b"
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:2a5fcbe080cd4a45bd75c2ea3856c069475d706d"
# When the host resumes from sleep, force a clock resync
- name: host-timesync-daemon
image: "linuxkit/host-timesync-daemon:e6c15e6ef75d302c1c22827bac249598fb365a83"
trust:
org:
- linuxkit