mirror of
https://github.com/containers/podman.git
synced 2025-05-23 18:17:53 +08:00
[NO TESTS NEEDED] Vendor in containers/buildah v1.20.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
3
vendor/github.com/fsouza/go-dockerclient/container_create.go
generated
vendored
3
vendor/github.com/fsouza/go-dockerclient/container_create.go
generated
vendored
@ -49,7 +49,8 @@ func (c *Client) CreateContainer(opts CreateContainerOptions) (*Container, error
|
||||
},
|
||||
)
|
||||
|
||||
if e, ok := err.(*Error); ok {
|
||||
var e *Error
|
||||
if errors.As(err, &e) {
|
||||
if e.Status == http.StatusNotFound && strings.Contains(e.Message, "No such image") {
|
||||
return nil, ErrNoSuchImage
|
||||
}
|
||||
|
Reference in New Issue
Block a user