mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-16 20:24:10 +00:00
This is needed for cloud environments that want to get their metadata in the onboot phase over the network. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
40 lines
967 B
YAML
40 lines
967 B
YAML
kernel:
|
|
image: "mobylinux/kernel:4.9.x"
|
|
cmdline: "console=ttyS0 console=tty0 page_poison=1"
|
|
init:
|
|
- mobylinux/init:925c88f42d92d57cd36b656db1f8757b152163a7
|
|
- mobylinux/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
|
|
- mobylinux/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
|
|
onboot:
|
|
- name: sysctl
|
|
image: "mobylinux/sysctl:2cf2f9d5b4d314ba1bfc22b2fe931924af666d8c"
|
|
net: host
|
|
pid: host
|
|
ipc: host
|
|
capabilities:
|
|
- CAP_SYS_ADMIN
|
|
readonly: true
|
|
services:
|
|
- name: dhcpcd
|
|
image: "mobylinux/dhcpcd:0d4012269cb142972fed8542fbdc3ff5a7b695cd"
|
|
binds:
|
|
- /var:/var
|
|
- /tmp/etc:/etc
|
|
capabilities:
|
|
- CAP_NET_ADMIN
|
|
- CAP_NET_BIND_SERVICE
|
|
- CAP_NET_RAW
|
|
net: host
|
|
oomScoreAdj: -800
|
|
- name: nginx
|
|
image: "nginx:alpine"
|
|
capabilities:
|
|
- CAP_NET_BIND_SERVICE
|
|
- CAP_CHOWN
|
|
- CAP_SETUID
|
|
- CAP_SETGID
|
|
- CAP_DAC_OVERRIDE
|
|
net: host
|
|
outputs:
|
|
- format: kernel+initrd
|