Browse code

Add missing 'Names' field to /containers/json API output

Closes #14675

Wasn't sure how far back I needed to go so I did just a few.

Signed-off-by: Doug Davis <dug@us.ibm.com>

Doug Davis authored on 2015/07/16 21:31:54
Showing 6 changed files
... ...
@@ -43,6 +43,7 @@ List containers
43 43
         [
44 44
              {
45 45
                      "Id": "8dfafdbc3a40",
46
+                     "Names":["/boring_feynman"],
46 47
                      "Image": "ubuntu:latest",
47 48
                      "Command": "echo 1",
48 49
                      "Created": 1367854155,
... ...
@@ -53,6 +54,7 @@ List containers
53 53
              },
54 54
              {
55 55
                      "Id": "9cd87474be90",
56
+                     "Names":["/coolName"],
56 57
                      "Image": "ubuntu:latest",
57 58
                      "Command": "echo 222222",
58 59
                      "Created": 1367854155,
... ...
@@ -63,6 +65,7 @@ List containers
63 63
              },
64 64
              {
65 65
                      "Id": "3176a2479c92",
66
+                     "Names":["/sleepy_dog"],
66 67
                      "Image": "ubuntu:latest",
67 68
                      "Command": "echo 3333333333333333",
68 69
                      "Created": 1367854154,
... ...
@@ -73,6 +76,7 @@ List containers
73 73
              },
74 74
              {
75 75
                      "Id": "4cb07b47f9fb",
76
+                     "Names":["/running_cat"],
76 77
                      "Image": "ubuntu:latest",
77 78
                      "Command": "echo 444444444444444444444444444444444",
78 79
                      "Created": 1367854152,
... ...
@@ -43,6 +43,7 @@ List containers
43 43
         [
44 44
              {
45 45
                      "Id": "8dfafdbc3a40",
46
+                     "Names":["/boring_feynman"],
46 47
                      "Image": "ubuntu:latest",
47 48
                      "Command": "echo 1",
48 49
                      "Created": 1367854155,
... ...
@@ -53,6 +54,7 @@ List containers
53 53
              },
54 54
              {
55 55
                      "Id": "9cd87474be90",
56
+                     "Names":["/coolName"],
56 57
                      "Image": "ubuntu:latest",
57 58
                      "Command": "echo 222222",
58 59
                      "Created": 1367854155,
... ...
@@ -63,6 +65,7 @@ List containers
63 63
              },
64 64
              {
65 65
                      "Id": "3176a2479c92",
66
+                     "Names":["/sleep_dog"],
66 67
                      "Image": "ubuntu:latest",
67 68
                      "Command": "echo 3333333333333333",
68 69
                      "Created": 1367854154,
... ...
@@ -73,6 +76,7 @@ List containers
73 73
              },
74 74
              {
75 75
                      "Id": "4cb07b47f9fb",
76
+                     "Names":["/running_cat"],
76 77
                      "Image": "ubuntu:latest",
77 78
                      "Command": "echo 444444444444444444444444444444444",
78 79
                      "Created": 1367854152,
... ...
@@ -43,6 +43,7 @@ List containers
43 43
         [
44 44
              {
45 45
                      "Id": "8dfafdbc3a40",
46
+                     "Names":["/boring_feynman"],
46 47
                      "Image": "ubuntu:latest",
47 48
                      "Command": "echo 1",
48 49
                      "Created": 1367854155,
... ...
@@ -53,6 +54,7 @@ List containers
53 53
              },
54 54
              {
55 55
                      "Id": "9cd87474be90",
56
+                     "Names":["/coolName"],
56 57
                      "Image": "ubuntu:latest",
57 58
                      "Command": "echo 222222",
58 59
                      "Created": 1367854155,
... ...
@@ -63,6 +65,7 @@ List containers
63 63
              },
64 64
              {
65 65
                      "Id": "3176a2479c92",
66
+                     "Names":["/sleepy_dog"],
66 67
                      "Image": "ubuntu:latest",
67 68
                      "Command": "echo 3333333333333333",
68 69
                      "Created": 1367854154,
... ...
@@ -73,6 +76,7 @@ List containers
73 73
              },
74 74
              {
75 75
                      "Id": "4cb07b47f9fb",
76
+                     "Names":["/running_cat"],
76 77
                      "Image": "ubuntu:latest",
77 78
                      "Command": "echo 444444444444444444444444444444444",
78 79
                      "Created": 1367854152,
... ...
@@ -43,6 +43,7 @@ List containers
43 43
         [
44 44
              {
45 45
                      "Id": "8dfafdbc3a40",
46
+                     "Names":["/boring_feynman"],
46 47
                      "Image": "ubuntu:latest",
47 48
                      "Command": "echo 1",
48 49
                      "Created": 1367854155,
... ...
@@ -53,6 +54,7 @@ List containers
53 53
              },
54 54
              {
55 55
                      "Id": "9cd87474be90",
56
+                     "Names":["/coolName"],
56 57
                      "Image": "ubuntu:latest",
57 58
                      "Command": "echo 222222",
58 59
                      "Created": 1367854155,
... ...
@@ -63,6 +65,7 @@ List containers
63 63
              },
64 64
              {
65 65
                      "Id": "3176a2479c92",
66
+                     "Names":["/sleepy_dog"],
66 67
                      "Image": "ubuntu:latest",
67 68
                      "Command": "echo 3333333333333333",
68 69
                      "Created": 1367854154,
... ...
@@ -73,6 +76,7 @@ List containers
73 73
              },
74 74
              {
75 75
                      "Id": "4cb07b47f9fb",
76
+                     "Names":["/running_cat"],
76 77
                      "Image": "ubuntu:latest",
77 78
                      "Command": "echo 444444444444444444444444444444444",
78 79
                      "Created": 1367854152,
... ...
@@ -45,6 +45,7 @@ List containers
45 45
     [
46 46
          {
47 47
                  "Id": "8dfafdbc3a40",
48
+                 "Names":["/boring_feynman"],
48 49
                  "Image": "ubuntu:latest",
49 50
                  "Command": "echo 1",
50 51
                  "Created": 1367854155,
... ...
@@ -55,6 +56,7 @@ List containers
55 55
          },
56 56
          {
57 57
                  "Id": "9cd87474be90",
58
+                 "Names":["/coolName"],
58 59
                  "Image": "ubuntu:latest",
59 60
                  "Command": "echo 222222",
60 61
                  "Created": 1367854155,
... ...
@@ -65,6 +67,7 @@ List containers
65 65
          },
66 66
          {
67 67
                  "Id": "3176a2479c92",
68
+                 "Names":["/sleepy_dog"],
68 69
                  "Image": "ubuntu:latest",
69 70
                  "Command": "echo 3333333333333333",
70 71
                  "Created": 1367854154,
... ...
@@ -75,6 +78,7 @@ List containers
75 75
          },
76 76
          {
77 77
                  "Id": "4cb07b47f9fb",
78
+                 "Names":["/running_cat"],
78 79
                  "Image": "ubuntu:latest",
79 80
                  "Command": "echo 444444444444444444444444444444444",
80 81
                  "Created": 1367854152,
... ...
@@ -45,6 +45,7 @@ List containers
45 45
     [
46 46
          {
47 47
                  "Id": "8dfafdbc3a40",
48
+                 "Names":["/boring_feynman"],
48 49
                  "Image": "ubuntu:latest",
49 50
                  "Command": "echo 1",
50 51
                  "Created": 1367854155,
... ...
@@ -55,6 +56,7 @@ List containers
55 55
          },
56 56
          {
57 57
                  "Id": "9cd87474be90",
58
+                 "Names":["/coolName"]
58 59
                  "Image": "ubuntu:latest",
59 60
                  "Command": "echo 222222",
60 61
                  "Created": 1367854155,
... ...
@@ -65,6 +67,7 @@ List containers
65 65
          },
66 66
          {
67 67
                  "Id": "3176a2479c92",
68
+                 "Names":["/sleepy_dog"]
68 69
                  "Image": "ubuntu:latest",
69 70
                  "Command": "echo 3333333333333333",
70 71
                  "Created": 1367854154,
... ...
@@ -75,6 +78,7 @@ List containers
75 75
          },
76 76
          {
77 77
                  "Id": "4cb07b47f9fb",
78
+                 "Names":["/running_cat"]
78 79
                  "Image": "ubuntu:latest",
79 80
                  "Command": "echo 444444444444444444444444444444444",
80 81
                  "Created": 1367854152,