Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Fix crash when using remote docker instance (#169)
Browse files Browse the repository at this point in the history
When trying to compare / sync and where the remote host is based on Docker, an error will be displayed as per below:
invalid argument "pihole1" for "-f, --filter" flag: bad format of filter (expected name=value)
See 'docker ps --help'.
  • Loading branch information
nh-mike authored Feb 15, 2021
1 parent f32a0e2 commit 325ef1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/gs-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function ph_type {
RH_EXEC="${RIHOLE_BIN}"
elif [ "$RH_IN_TYPE" == "docker" ]
then
RH_EXEC="sudo ${ROCKER_BIN} exec $(sudo ${ROCKER_BIN} ps -qf ${ROCKER_CON}) pihole"
RH_EXEC="sudo ${ROCKER_BIN} exec $(sudo ${ROCKER_BIN} ps -qf name=${ROCKER_CON}) pihole"
elif [ "$RH_IN_TYPE" == "podman" ]
then
RH_EXEC="sudo ${RODMAN_BIN} exec ${ROCKER_CON} pihole"
Expand Down Expand Up @@ -143,4 +143,4 @@ function start_gs_noconfig {

MESSAGE="Evaluating Arguments"
echo_stat
}
}

0 comments on commit 325ef1e

Please sign in to comment.