compose: [BUG] Tab completion and `--file` option results in "y"
Description
When performing tab completion on --file <path>, the result is the character “y”. Regardless of how many leading characters are input before tab; the end result is “y” replaces all prior input.
Steps To Reproduce
Ubuntu 22.04.1, fully updated Docker-CE repository
RUN: docker compose --file /mnt/start-of-path [tab] RESULT: docker compose --file y
The expected result is the completion of the line relative to the objects in the path that match the preceding characters.
Compose Version
Docker Compose version v2.12.2
Docker Environment
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
compose: Docker Compose (Docker Inc., v2.12.2)
scan: Docker Scan (Docker Inc., v0.21.0)
Server:
Containers: 6
Running: 6
Paused: 0
Stopped: 0
Images: 6
Server Version: 20.10.21
Storage Driver: zfs
Zpool: rpool
Zpool Health: ONLINE
Parent Dataset: rpool/ROOT/ubuntu_549uxf/var/lib
Space Used By Parent: 3004538880
Space Available: 199805337600
Parent Quota: no
Compression: lz4
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 logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 770bd0108c32f3fb5c73ae1264f7e503fe7b2661
runc version: v1.1.4-0-g5fd4c4d
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
cgroupns
Kernel Version: 5.15.0-56-generic
Operating System: Ubuntu 22.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 7.653GiB
Name: tmk-svr-01
ID: OVLQ:BHCM:EYES:2XNJ:IBFZ:ANTP:GEPH:Y5M7:FDET:EB5P:NOQB:G6VX
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
Anything else?
Started with compose Live Restore Enabled: true
### Anything else?
Started with compose 2.11.2 when tab/command completion was introduced. Persists through 2.12.2
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 17
This issue is now fixed for me with Docker CLI 23.0.4
I’m closing this issue as “fixed in compose” (waiting for docker/cli release)