summaryrefslogtreecommitdiff
path: root/vendor/github.com/fsouza/go-dockerclient/container_copy.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/container_copy.go')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/container_copy.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/container_copy.go b/vendor/github.com/fsouza/go-dockerclient/container_copy.go
index d36c7e710..c8ffb85c3 100644
--- a/vendor/github.com/fsouza/go-dockerclient/container_copy.go
+++ b/vendor/github.com/fsouza/go-dockerclient/container_copy.go
@@ -38,7 +38,8 @@ func (c *Client) CopyFromContainer(opts CopyFromContainerOptions) error {
context: opts.Context,
})
if err != nil {
- if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
+ var e *Error
+ if errors.As(err, &e) && e.Status == http.StatusNotFound {
return &NoSuchContainer{ID: opts.Container}
}
return err