mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
client: remove special error handling for "no such image"
looks like we don't need this handling Before this patch: Error: No such image: nosuchimage After this patch: Error response from daemon: No such image: nosuchimage:latest " Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
38e6d474af
commit
77c5668baf
1 changed files with 0 additions and 4 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"context"
|
||||
"encoding/json"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/docker/docker/api/types/network"
|
||||
|
@ -44,9 +43,6 @@ func (cli *Client) ContainerCreate(ctx context.Context, config *container.Config
|
|||
|
||||
serverResp, err := cli.post(ctx, "/containers/create", query, body, nil)
|
||||
if err != nil {
|
||||
if serverResp.statusCode == 404 && strings.Contains(err.Error(), "No such image") {
|
||||
return response, objectNotFoundError{object: "image", id: config.Image}
|
||||
}
|
||||
return response, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue