diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 5ae7a1f7ee..827f02f999 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2104,10 +2104,7 @@ _docker_node_ps() { COMPREPLY=( $( compgen -W "--all -a --filter -f --help --no-resolve --no-trunc" -- "$cur" ) ) ;; *) - local counter=$(__docker_pos_first_nonflag '--filter|-f') - if [ $cword -eq $counter ]; then - __docker_complete_nodes_plus_self - fi + __docker_complete_nodes_plus_self ;; esac }