Skip to content

[bug] zsh completion contains trailing '*' #3631

@Freed-Wu

Description

@Freed-Wu

Description

Describe the results you received:

In zsh:

❯ docker build<Tab>
docker command
build       Build an image from a Dockerfile
builder     Manage builds
buildx*     Docker Buildx (Docker Inc., v0.8.2-docker)
❯ docker buildx\*
docker: 'buildx*' is not a docker command.
See 'docker --help'

The correct command should be buildx without a trailing *.

Describe the results you expected:

❯ docker build<Tab>
docker command
build       Build an image from a Dockerfile
builder     Manage builds
buildx      Docker Buildx (Docker Inc., v0.8.2-docker)
❯ docker buildx
...

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
 Version:           20.10.16
 API version:       1.41
 Go version:        go1.18.1
 Git commit:        aa7e414fdc
 Built:             Sat May 14 12:48:33 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.16
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.1
  Git commit:       f756502055
  Built:            Sat May 14 12:47:27 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.6.4
  GitCommit:        212e8b6fa2f44b9c21b2798135fc6fb7c53efc16.m
 runc:
  Version:          1.1.2
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Output of docker info:

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.8.2-docker)
  compose: Docker Compose (Docker Inc., 2.5.0)

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 1
 Server Version: 20.10.16
 Storage Driver: btrfs
  Build Version: Btrfs v5.17 
  Library Version: 102
 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.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16.m
 runc version: 
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.17.7-arch1-1
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.651GiB
 Name: arch
 ID: XDJC:U66O:4UGS:S6FA:HBPN:HUW4:W3PF:KC7D:VUUX:32O4:4O7F:7SAG
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: freedwu
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  https://dockerhub.azk8s.cn/
 Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):

❯ uname -r
5.17.7-arch1-1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions