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 0c04ad8dcb
commit 03e4c519f1
7 changed files with 40 additions and 40 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
}