config.json 740 B

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "description": "Docker host bridge DHCP networking",
  3. "interface": {
  4. "socket": "net-dhcp.sock",
  5. "types": [
  6. "docker.networkdriver/1.0"
  7. ]
  8. },
  9. "entrypoint": [ "python", "-m", "net_dhcp" ],
  10. "workdir": "/opt/plugin",
  11. "network": {
  12. "type": "host"
  13. },
  14. "mounts": [
  15. {
  16. "source": "/var/run/docker.sock",
  17. "destination": "/run/docker.sock",
  18. "type": "bind",
  19. "options": [
  20. "bind"
  21. ]
  22. }
  23. ],
  24. "pidhost": true,
  25. "linux": {
  26. "capabilities": [
  27. "CAP_NET_ADMIN",
  28. "CAP_SYS_ADMIN",
  29. "CAP_SYS_PTRACE",
  30. "CAP_SYS_RESOURCE"
  31. ]
  32. }
  33. }