Make run-tests compatible with Podman (#3961)

There is no need to filter for references in such a complicated way.
docker images already works if you just pass the image and tag as
an argument.

This caused problems if one was using podman with its docker-compatible
interface.
Previously podman would return the following error:
Error: cannot specify an image and a filter(s)

With this new method podman does not return an error anymore, causing
the image to not be redownloaded every time and it still works with
normal Docker.
This commit is contained in:
Magnus Groß 2021-11-04 08:01:46 +01:00 committed by GitHub
parent 92f08b5af2
commit f37cd1fd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ fi
find test -name '*.swp' -delete
# Check if docker un image is available locally
has_image=$(docker images ls --filter reference="${image}:${image_tag}" --quiet | wc -l)
has_image=$(docker images --quiet "${image}:${image_tag}" | wc -l)
if [ "$has_image" -eq 0 ]
then