diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index e1cb328437..50993eb8b6 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3242,10 +3242,7 @@ _docker_service_ps() { COMPREPLY=( $( compgen -W "--filter -f --format --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) ) ;; *) - local counter=$(__docker_pos_first_nonflag '--filter|-f') - if [ "$cword" -eq "$counter" ]; then - __docker_complete_services - fi + __docker_complete_services ;; esac }