-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Description
Hi!
Just finished setup of my new VM (Ubuntu + zsh + ohmyzsh) and discovered that:
- On zsh, using
docker com [tab]doesn't have compose in it. It provides:
> docker com [tab]
commit -- Create a new image from a container's changes
config -- Manage Docker configs
container -- Manage containers
context -- Manage contexts
- Using the same on
bashworks without an issue. - Using
docker-compose [tab]works as expected. - Using
docker compose versionworks as expected. Any command written manually works ok. - Using
docker composer [tab]doesn't work (no suggestions).
Took a look on the https://github.com/docker/cli/tree/master/contrib/completion and, yup, there are no subcommands for compose for zsh.
Relevant config for bash is here: https://github.com/docker/cli/blob/master/contrib/completion/bash/docker#L5400
Small note, if you find this before the feature is implemented, the easiest workaround is using https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose, which provides handy dco alias for docker-compose ;)
floviolleau, Arkemlar, fessmage and g0t4