summaryrefslogtreecommitdiffhomepage
path: root/pkg/test/dockerutil
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/test/dockerutil')
-rw-r--r--pkg/test/dockerutil/dockerutil.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/test/dockerutil/dockerutil.go b/pkg/test/dockerutil/dockerutil.go
index baa8fc2f2..5f2af9f3b 100644
--- a/pkg/test/dockerutil/dockerutil.go
+++ b/pkg/test/dockerutil/dockerutil.go
@@ -353,7 +353,10 @@ func (d *Docker) run(r RunOpts, command string, p ...string) (string, error) {
// Create calls 'docker create' with the arguments provided.
func (d *Docker) Create(r RunOpts, args ...string) error {
- _, err := d.run(r, "create", args...)
+ out, err := d.run(r, "create", args...)
+ if strings.Contains(out, "Unable to find image") {
+ return fmt.Errorf("unable to find image, did you remember to `make load-%s`: %w", r.Image, err)
+ }
return err
}