mirror of
https://github.com/devplayer0/docker-net-dhcp
synced 2024-10-30 09:20:28 +00:00
a27b20e87d
NOTE: This is needed to enter namespaces for other users!
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"description": "Docker host bridge DHCP networking",
|
|
"interface": {
|
|
"socket": "net-dhcp.sock",
|
|
"types": [
|
|
"docker.networkdriver/1.0"
|
|
]
|
|
},
|
|
"entrypoint": ["/usr/sbin/net-dhcp", "-logfile", "/var/log/net-dhcp.log"],
|
|
"env": [
|
|
{
|
|
"description": "Log level",
|
|
"name": "LOG_LEVEL",
|
|
"value": "info",
|
|
"settable": [
|
|
"value"
|
|
]
|
|
},
|
|
{
|
|
"description": "Log level",
|
|
"name": "AWAIT_TIMEOUT",
|
|
"value": "10s",
|
|
"settable": [
|
|
"value"
|
|
]
|
|
}
|
|
],
|
|
"workdir": "/",
|
|
"network": {
|
|
"type": "host"
|
|
},
|
|
"pidhost": true,
|
|
"mounts": [
|
|
{
|
|
"source": "/var/run/docker.sock",
|
|
"destination": "/run/docker.sock",
|
|
"type": "bind",
|
|
"options": [
|
|
"bind"
|
|
]
|
|
}
|
|
],
|
|
"linux": {
|
|
"capabilities": [
|
|
"CAP_NET_ADMIN",
|
|
"CAP_SYS_ADMIN",
|
|
"CAP_SYS_PTRACE"
|
|
]
|
|
}
|
|
}
|