refactor: use DOCKER_BIN env var instead of calling docker directly

This will allow us to alias the docker binary with podman for most actions - other than updating running containers.
This commit is contained in:
Jose Diaz-Gonzalez
2023-02-07 03:53:08 -05:00
parent b50752d009
commit 646356d086
5 changed files with 38 additions and 38 deletions

View File

@@ -12,8 +12,8 @@ plugin-install() {
echo " ! docker image pull ${IMAGE}" 1>&2
return
fi
if [[ "$(docker image ls -q "${IMAGE}" 2>/dev/null)" == "" ]]; then
docker image pull "${IMAGE}"
if [[ "$("$DOCKER_BIN" image ls -q "${IMAGE}" 2>/dev/null)" == "" ]]; then
"$DOCKER_BIN" image pull "${IMAGE}"
fi
}