Browse code

Update inspect api examples with new network settings.

Signed-off-by: David Calavera <david.calavera@gmail.com>

David Calavera authored on 2015/10/28 08:54:37
Showing 2 changed files
... ...
@@ -437,11 +437,26 @@ Return low-level information on the container `id`
437 437
 		"Name": "/boring_euclid",
438 438
 		"NetworkSettings": {
439 439
 			"Bridge": "",
440
-			"Gateway": "",
441
-			"IPAddress": "",
442
-			"IPPrefixLen": 0,
443
-			"MacAddress": "",
444
-			"Ports": null
440
+			"SandboxID": "",
441
+			"HairpinMode": false,
442
+			"LinkLocalIPv6Address": "",
443
+			"LinkLocalIPv6PrefixLen": 0,
444
+			"SandboxKey": "",
445
+			"SecondaryIPAddresses": [],
446
+			"SecondaryIPv6Addresses": [],
447
+			"Ports": null,
448
+			"Networks": {
449
+				"bridge": {
450
+					"EndpointID": "",
451
+					"Gateway": "",
452
+					"IPAdress": "",
453
+					"IPPrefixLen": 0,
454
+					"IPv6Gateway": "",
455
+					"GlobalIPv6Address": "",
456
+					"GlobalIPv6PrefixLen": 0,
457
+					"MacAddress": ""
458
+				}
459
+			}
445 460
 		},
446 461
 		"Path": "/bin/sh",
447 462
 		"ProcessLabel": "",
... ...
@@ -2369,14 +2384,29 @@ Return low-level information about the `exec` command `id`.
2369 2369
           "SecurityOpt" : null
2370 2370
         },
2371 2371
         "Image" : "5506de2b643be1e6febbf3b8a240760c6843244c41e12aa2f60ccbb7153d17f5",
2372
-        "NetworkSettings" : {
2373
-          "IPAddress" : "172.17.0.2",
2374
-          "IPPrefixLen" : 16,
2375
-          "MacAddress" : "02:42:ac:11:00:02",
2376
-          "Gateway" : "172.17.42.1",
2377
-          "Bridge" : "docker0",
2378
-          "Ports" : {}
2379
-        },
2372
+	"NetworkSettings": {
2373
+		"Bridge": "",
2374
+		"SandboxID": "",
2375
+		"HairpinMode": false,
2376
+		"LinkLocalIPv6Address": "",
2377
+		"LinkLocalIPv6PrefixLen": 0,
2378
+		"SandboxKey": "",
2379
+		"SecondaryIPAddresses": [],
2380
+		"SecondaryIPv6Addresses": [],
2381
+		"Ports": null,
2382
+		"Networks": {
2383
+			"bridge": {
2384
+				"EndpointID": "",
2385
+				"Gateway": "",
2386
+				"IPAdress": "",
2387
+				"IPPrefixLen": 0,
2388
+				"IPv6Gateway": "",
2389
+				"GlobalIPv6Address": "",
2390
+				"GlobalIPv6PrefixLen": 0,
2391
+				"MacAddress": ""
2392
+			}
2393
+		}
2394
+	},
2380 2395
         "ResolvConfPath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/resolv.conf",
2381 2396
         "HostnamePath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/hostname",
2382 2397
         "HostsPath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/hosts",
... ...
@@ -435,11 +435,26 @@ Return low-level information on the container `id`
435 435
 		"Name": "/boring_euclid",
436 436
 		"NetworkSettings": {
437 437
 			"Bridge": "",
438
-			"Gateway": "",
439
-			"IPAddress": "",
440
-			"IPPrefixLen": 0,
441
-			"MacAddress": "",
442
-			"Ports": null
438
+			"SandboxID": "",
439
+			"HairpinMode": false,
440
+			"LinkLocalIPv6Address": "",
441
+			"LinkLocalIPv6PrefixLen": 0,
442
+			"SandboxKey": "",
443
+			"SecondaryIPAddresses": [],
444
+			"SecondaryIPv6Addresses": [],
445
+			"Ports": null,
446
+			"Networks": {
447
+				"bridge": {
448
+					"EndpointID": "",
449
+					"Gateway": "",
450
+					"IPAdress": "",
451
+					"IPPrefixLen": 0,
452
+					"IPv6Gateway": "",
453
+					"GlobalIPv6Address": "",
454
+					"GlobalIPv6PrefixLen": 0,
455
+					"MacAddress": ""
456
+				}
457
+			}
443 458
 		},
444 459
 		"Path": "/bin/sh",
445 460
 		"ProcessLabel": "",
... ...
@@ -2364,14 +2379,29 @@ Return low-level information about the `exec` command `id`.
2364 2364
           "SecurityOpt" : null
2365 2365
         },
2366 2366
         "Image" : "5506de2b643be1e6febbf3b8a240760c6843244c41e12aa2f60ccbb7153d17f5",
2367
-        "NetworkSettings" : {
2368
-          "IPAddress" : "172.17.0.2",
2369
-          "IPPrefixLen" : 16,
2370
-          "MacAddress" : "02:42:ac:11:00:02",
2371
-          "Gateway" : "172.17.42.1",
2372
-          "Bridge" : "docker0",
2373
-          "Ports" : {}
2374
-        },
2367
+	"NetworkSettings": {
2368
+		"Bridge": "",
2369
+		"SandboxID": "",
2370
+		"HairpinMode": false,
2371
+		"LinkLocalIPv6Address": "",
2372
+		"LinkLocalIPv6PrefixLen": 0,
2373
+		"SandboxKey": "",
2374
+		"SecondaryIPAddresses": [],
2375
+		"SecondaryIPv6Addresses": [],
2376
+		"Ports": null,
2377
+		"Networks": {
2378
+			"bridge": {
2379
+				"EndpointID": "",
2380
+				"Gateway": "",
2381
+				"IPAdress": "",
2382
+				"IPPrefixLen": 0,
2383
+				"IPv6Gateway": "",
2384
+				"GlobalIPv6Address": "",
2385
+				"GlobalIPv6PrefixLen": 0,
2386
+				"MacAddress": ""
2387
+			}
2388
+		}
2389
+	},
2375 2390
         "ResolvConfPath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/resolv.conf",
2376 2391
         "HostnamePath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/hostname",
2377 2392
         "HostsPath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/hosts",