Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/e2e/test_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ func (dc *DockerContainer) GetTargetConfig() TargetConfig {
func (dc *DockerContainer) SetImage(image string) error {
dc.ImageName = image
// TODO: check if image exists
// Check if the image exists
cmd := exec.Command("docker", "image", "inspect", image)
if err := cmd.Run(); err != nil {
return fmt.Errorf("docker image '%s' not found: %v", image, err)
}
return nil
}

Expand Down