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

Commit 325ef1e

Browse files
authored
Fix crash when using remote docker instance (#169)
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'.
1 parent f32a0e2 commit 325ef1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/gs-core.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function ph_type {
102102
RH_EXEC="${RIHOLE_BIN}"
103103
elif [ "$RH_IN_TYPE" == "docker" ]
104104
then
105-
RH_EXEC="sudo ${ROCKER_BIN} exec $(sudo ${ROCKER_BIN} ps -qf ${ROCKER_CON}) pihole"
105+
RH_EXEC="sudo ${ROCKER_BIN} exec $(sudo ${ROCKER_BIN} ps -qf name=${ROCKER_CON}) pihole"
106106
elif [ "$RH_IN_TYPE" == "podman" ]
107107
then
108108
RH_EXEC="sudo ${RODMAN_BIN} exec ${ROCKER_CON} pihole"
@@ -143,4 +143,4 @@ function start_gs_noconfig {
143143

144144
MESSAGE="Evaluating Arguments"
145145
echo_stat
146-
}
146+
}

0 commit comments

Comments
 (0)