mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-15 16:30:55 +00:00
31 lines
1.2 KiB
YAML
31 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: "linuxkit/docker-ce:9b937df179bdbebbc70243779978057df0b54190"
|
|
capabilities:
|
|
- all
|
|
net: host
|
|
mounts:
|
|
- type: cgroup
|
|
options: ["rw","nosuid","noexec","nodev","relatime"]
|
|
binds:
|
|
- /var/lib/docker:/var/lib/docker
|
|
- /lib/modules:/lib/modules
|
|
- /var/vpnkit:/port
|
|
- /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/bin/docker-init", "/usr/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" ]
|
|
|
|
files:
|
|
- path: /var/config/docker/daemon.json
|
|
contents: '{ "debug": true }'
|