akarzim / zsh-docker-aliases

ZSH Docker aliases and functions
MIT License
199 stars 33 forks source link

Handy wrapper for docker-compose exec #4

Closed EvgeniyRRU closed 6 years ago

EvgeniyRRU commented 6 years ago

Hello, it's neat zsh-plugin, but what about to add one more thing: Its common to login into already running container:

$ docker-compose exec postgres /bin/bash -l

May be something like this?

$ dkclo postgres
akarzim commented 6 years ago

Hello @EvgeniyRRU, the alias dkce already exists so you ca write something like

$ dkce postgres /bin/bash -l

But, you'll agree, it's a non-sense to create an alias for each imaginable command. /bin/bash may even not be available for the given container. So if you need to, feel free to create your own alias based on dkce.