Skip to content

Commit 6ed6db2

Browse files
committed
fix: correct issues where docker ps is truncated
This should actually be refactored to avoid the grep call completely, but the current fix will correct the issue for now. Refs #131
1 parent 354309f commit 6ed6db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common-functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ service_stop() {
667667
declare SERVICE="$1"
668668
local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE";
669669
local SERVICE_NAME="$(get_service_name "$SERVICE")"
670-
local ID=$(docker ps -f status=running | grep -e "$SERVICE_NAME$" | awk '{print $1}') || true
670+
local ID=$(docker ps -f status=running --no-trunc | grep -e "$SERVICE_NAME$" | awk '{print $1}') || true
671671
[[ -z $ID ]] && dokku_log_warn "Service is already stopped" && return 0
672672

673673
if [[ -n $ID ]]; then

0 commit comments

Comments
 (0)