Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud authored on 2016/04/25 19:40:24... | ... |
@@ -153,7 +153,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error { |
153 | 153 |
} |
154 | 154 |
|
155 | 155 |
if info.RegistryConfig != nil && (len(info.RegistryConfig.InsecureRegistryCIDRs) > 0 || len(info.RegistryConfig.IndexConfigs) > 0) { |
156 |
- fmt.Fprintln(cli.out, "Insecure registries:") |
|
156 |
+ fmt.Fprintln(cli.out, "Insecure Registries:") |
|
157 | 157 |
for _, registry := range info.RegistryConfig.IndexConfigs { |
158 | 158 |
if registry.Secure == false { |
159 | 159 |
fmt.Fprintf(cli.out, " %s\n", registry.Name) |
... | ... |
@@ -178,7 +178,7 @@ func (s *DockerSuite) TestInsecureRegistries(c *check.C) { |
178 | 178 |
|
179 | 179 |
out, err := d.Cmd("info") |
180 | 180 |
c.Assert(err, checker.IsNil) |
181 |
- c.Assert(out, checker.Contains, "Insecure registries:\n") |
|
181 |
+ c.Assert(out, checker.Contains, "Insecure Registries:\n") |
|
182 | 182 |
c.Assert(out, checker.Contains, fmt.Sprintf(" %s\n", registryHost)) |
183 | 183 |
c.Assert(out, checker.Contains, fmt.Sprintf(" %s\n", registryCIDR)) |
184 | 184 |
} |