(img string)
| 461 | } |
| 462 | |
| 463 | func (dr *dockerRunnerImpl) Pull(img string) (bool, error) { |
| 464 | err := dr.command(nil, nil, nil, "image", "pull", img) |
| 465 | if err == nil { |
| 466 | return true, nil |
| 467 | } |
| 468 | switch err.(type) { |
| 469 | case *exec.ExitError: |
| 470 | return false, nil |
| 471 | default: |
| 472 | return false, err |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | //nolint:unused // will be used when linuxkit cache is eliminated and we return to docker image cache |
| 477 | func (dr dockerRunnerImpl) push(img string) error { |