mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
More descriptive error message for missing docker image.
Tested: Ran a packetimpact test after `docker image rm` and examined the message. PiperOrigin-RevId: 308370603
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user