mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-15 19:11:35 +00:00
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
services:
|
|
# Run dockerd with the vpnkit userland proxy from the vpnkit-forwarder container.
|
|
# Bind mounts /var/run to allow vsudd to connect to docker.sock, /var/vpnkit
|
|
# for vpnkit coordination and /var/config/docker for the configuration file.
|
|
- name: docker-dfm
|
|
image: docker:17.07.0-ce-dind
|
|
capabilities:
|
|
- all
|
|
net: host
|
|
mounts:
|
|
- type: cgroup
|
|
options: ["rw","nosuid","noexec","nodev","relatime"]
|
|
binds:
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
|
- /var/lib/docker:/var/lib/docker
|
|
- /lib/modules:/lib/modules
|
|
- /var/vpnkit:/port # vpnkit control 9p mount
|
|
- /var/run:/var/run
|
|
- /var/config/docker:/var/config/docker
|
|
- /usr/bin/vpnkit-expose-port:/usr/bin/vpnkit-expose-port # userland proxy
|
|
- /usr/bin/vpnkit-iptables-wrapper:/usr/bin/iptables # iptables wrapper
|
|
command: [ "/usr/local/bin/docker-init", "/usr/local/bin/dockerd", "--",
|
|
"--config-file", "/var/config/docker/daemon.json",
|
|
"--swarm-default-advertise-addr=eth0",
|
|
"--userland-proxy-path", "/usr/bin/vpnkit-expose-port",
|
|
"--storage-driver", "overlay2" ]
|
|
runtime:
|
|
mkdir: ["/var/lib/docker"]
|
|
trust:
|
|
org:
|
|
- library
|