Fix bash completion for `events --filter daemon=`

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit 3f7b156c85)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Harald Albers 2024-10-13 19:19:37 +00:00 committed by Paweł Gronowski
parent 0008d79159
commit dc36908ec5
No known key found for this signature in database
GPG Key ID: B85EFCFE26DEF92A
1 changed files with 1 additions and 1 deletions

View File

@ -5081,7 +5081,7 @@ _docker_system_events() {
return return
;; ;;
daemon) daemon)
local name=$(__docker_q info | sed -n 's/^\(ID\|Name\): //p') local name=$(__docker_q info --format '{{.Info.Name}} {{.Info.ID}}')
COMPREPLY=( $( compgen -W "$name" -- "${cur##*=}" ) ) COMPREPLY=( $( compgen -W "$name" -- "${cur##*=}" ) )
return return
;; ;;