diff options
author | Magnus Groß <21310755+vimpostor@users.noreply.github.com> | 2021-11-04 08:01:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 16:01:46 +0900 |
commit | f37cd1fd4fc17173a98649d8a0b2f37ce7ba61cf (patch) | |
tree | a55caf91968f37e55289eb20155b7f0c01c0f953 | |
parent | 92f08b5af2f6316312c95c5160c6e02b76370e04 (diff) | |
download | ale-f37cd1fd4fc17173a98649d8a0b2f37ce7ba61cf.zip |
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.
-rwxr-xr-x | run-tests | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |