Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. > docker network create --driver macvlan --ipv6 --subnet fd2b:a315:a66f:75e7::/64 --attachable storagenet
  2. > docker inspect storagenet
  3. [
  4. {
  5. "Name": "storagenet",
  6. "Id": "acde8763026c8b83319f542bf056b1ae3aac1a1dda2918929f296ef83a86cc87",
  7. "Created": "2019-06-20T22:21:01.66099475+02:00",
  8. "Scope": "local",
  9. "Driver": "macvlan",
  10. "EnableIPv6": true,
  11. "IPAM": {
  12. "Driver": "default",
  13. "Options": {},
  14. "Config": [
  15. {
  16. "Subnet": "192.168.96.0/20",
  17. "Gateway": "192.168.96.1"
  18. },
  19. {
  20. "Subnet": "fd2b:a315:a66f:75e7::/64"
  21. }
  22. ]
  23. },
  24. "Internal": false,
  25. "Attachable": true,
  26. "Ingress": false,
  27. "ConfigFrom": {
  28. "Network": ""
  29. },
  30. "ConfigOnly": false,
  31. "Containers": {},
  32. "Options": {},
  33. "Labels": {}
  34. }
  35. ]
  36.  
  37. > docker network rm storagenet
  38. > docker network create --driver macvlan --scope=swarm --ipv6 --subnet fd2b:a315:a66f:75e7::/64 --attachable storagenet
  39. > docker inspect storagenet
  40. [
  41. {
  42. "Name": "storagenet",
  43. "Id": "zljkxaebgc54l9l8dbav6oz4k",
  44. "Created": "2019-06-20T20:22:18.596857196Z",
  45. "Scope": "swarm",
  46. "Driver": "macvlan",
  47. "EnableIPv6": true,
  48. "IPAM": {
  49. "Driver": "",
  50. "Options": null,
  51. "Config": []
  52. },
  53. "Internal": false,
  54. "Attachable": true,
  55. "Ingress": false,
  56. "ConfigFrom": {
  57. "Network": ""
  58. },
  59. "ConfigOnly": false,
  60. "Containers": null,
  61. "Options": null,
  62. "Labels": null
  63. }
  64. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement