Signed-off-by: Andrew C. Bodine <acbodine@us.ibm.com> Upstream-commit: d25a65375c880017ac0c516389b0b7afde810517 Component: engine
This commit is contained in:
@ -862,6 +862,12 @@ func (cli *DockerCli) CmdInspect(args ...string) error {
|
||||
for _, name := range cmd.Args() {
|
||||
obj, _, err := readBody(cli.call("GET", "/containers/"+name+"/json", nil, false))
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "Too many") {
|
||||
fmt.Fprintf(cli.err, "Error: %s", err.Error())
|
||||
status = 1
|
||||
continue
|
||||
}
|
||||
|
||||
obj, _, err = readBody(cli.call("GET", "/images/"+name+"/json", nil, false))
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "No such") {
|
||||
|
||||
Reference in New Issue
Block a user