mirror of
https://github.com/devplayer0/docker-net-dhcp
synced 2024-10-30 09:20:28 +00:00
0711a747bd
TODO: Fix this hack
34 lines
740 B
JSON
34 lines
740 B
JSON
{
|
|
"description": "Docker host bridge DHCP networking",
|
|
"interface": {
|
|
"socket": "net-dhcp.sock",
|
|
"types": [
|
|
"docker.networkdriver/1.0"
|
|
]
|
|
},
|
|
"entrypoint": [ "python", "-m", "net_dhcp" ],
|
|
"workdir": "/opt/plugin",
|
|
"network": {
|
|
"type": "host"
|
|
},
|
|
"mounts": [
|
|
{
|
|
"source": "/var/run/docker.sock",
|
|
"destination": "/run/docker.sock",
|
|
"type": "bind",
|
|
"options": [
|
|
"bind"
|
|
]
|
|
}
|
|
],
|
|
"pidhost": true,
|
|
"linux": {
|
|
"capabilities": [
|
|
"CAP_NET_ADMIN",
|
|
"CAP_SYS_ADMIN",
|
|
"CAP_SYS_PTRACE",
|
|
"CAP_SYS_RESOURCE"
|
|
]
|
|
}
|
|
}
|