mirror of
https://github.com/devplayer0/docker-net-dhcp
synced 2024-11-10 13:10:29 +00:00
47 lines
1.0 KiB
JSON
47 lines
1.0 KiB
JSON
{
|
|
"description": "Docker host bridge DHCP networking",
|
|
"interface": {
|
|
"socket": "net-dhcp.sock",
|
|
"types": [
|
|
"docker.networkdriver/1.0"
|
|
]
|
|
},
|
|
"entrypoint": [ "/opt/plugin/launch.sh" ],
|
|
"workdir": "/opt/plugin",
|
|
"network": {
|
|
"type": "host"
|
|
},
|
|
"mounts": [
|
|
{
|
|
"source": "/var/run/docker.sock",
|
|
"destination": "/run/docker.sock",
|
|
"type": "bind",
|
|
"options": [
|
|
"bind"
|
|
]
|
|
},
|
|
{
|
|
"source": "/var/run/docker/netns",
|
|
"destination": "/var/run/docker/netns",
|
|
"type": "bind",
|
|
"options": [
|
|
"bind"
|
|
]
|
|
}
|
|
],
|
|
"linux": {
|
|
"capabilities": [
|
|
"CAP_NET_ADMIN"
|
|
]
|
|
},
|
|
"env": [
|
|
{
|
|
"name": "GUNICORN_OPTS",
|
|
"settable": [
|
|
"value"
|
|
],
|
|
"value": "--log-level DEBUG --log-file /var/log/net-dhcp.log"
|
|
}
|
|
]
|
|
}
|