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:
4
install
4
install
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user