Repository navigation
Open
Labels
Description
Description
When trying to get file completion for the input flag in docker image load or docker load you get nothing even though the command accepts files as input
Reproduce
- Open terminal
- make sure docker bash completion is enabled
docker image load --input <PRESS TAB for bash completion>
Expected behavior
docker image load --input ... does not complete filenames but it should
docker version
Client: Docker Engine - Community
Version: 29.10.0
API version: 1.57
Go version: go1.27.4
Git commit: fdd4b8e
Built: Mon Nov 16 11:00:49 2026
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 29.10.0
API version: 1.57 (minimum version 1.40)
Go version: go1.27.4
Git commit: 06db173
Built: Mon Nov 16 11:01:38 2026
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v2.4.2
GitCommit: b7a25261e029d68978bbf290df0a62fc819b3c51
runc:
Version: 1.5.3
GitCommit: v1.5.3-0-g46365c62
docker-init:
Version: 0.19.0
GitCommit: de40ad0docker info
Client: Docker Engine - Community
Version: 29.10.0
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.39.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v5.8.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 11
Running: 0
Paused: 0
Stopped: 11
Images: 49
Server Version: 29.10.0
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
CDI spec directories:
/etc/cdi
/var/run/cdi
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b7a25261e029d68978bbf290df0a62fc819b3c51
runc version: v1.5.3-0-g46365c62
init version: de40ad0
Security Options:
apparmor
Profile: default
seccomp
Profile: builtin
cgroupns
Kernel Version: 7.0.0-43-generic
Operating System: Ubuntu 24.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 9.585GiB
Name: ahmed
ID: b7acfa86-f274-496d-ba75-b3aaef43fd6a
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
::1/128
Live Restore Enabled: false
Firewall Backend: iptables
EnableUserlandProxy: true
UserlandProxyPath: /usr/bin/docker-proxyAdditional Info
adding the line _ = cmd.RegisterFlagCompletionFunc("input", completion.FileNames()) to /cli/command/image/load.go fixes it
I'll make a pull request
Activity